Results 1 to 5 of 5

Thread: How to Install Session in PHP?

  1. #1
    Join Date
    May 2009
    Posts
    637

    How to Install Session in PHP?

    Hi friends,
    I have just started learning the PHP programming language, so I am not having much knowledge about it. I have done some basic programs in PHP. Now I am stuck at a point, where the session takes place. I want to do the session handling, so I want to install it. But I have no ideas about it. So please tell me how to Install Session in PHP?

  2. #2
    Join Date
    Aug 2006
    Posts
    227

    Re: How to Install Session in PHP?

    Session support is enabled by default. If you want to exclude it from PHP, you must use the option of disable-session when running the configure script. To use the RAM for storing sessions, compile PHP with DIR. The Windows version of PHP has support for this extension. You do not add any additional library to use these functions. By default, all data relating to a particular session will be stored in a directory specified by the session.save_path php.ini options. A file for each session will be created. This is because a session is opened but no data is written to this file.
    I do to dead flowers what people at morgues do to dead people. Suck all the moisture out, dip them in plastic, paint them up pretty and put them in a nice frame.

  3. #3
    Join Date
    Jul 2006
    Posts
    286

    Re: How to Install Session in PHP?

    You should also know about the Runtime Configuration. The behavior of these functions is affected by settings in php.ini. I have provided you with a list of some configuration options for sessions. The following is the same list :
    • session.save_path
    • session.name
    • session.save_handler
    • session.auto_start
    • session.gc_probability
    • session.gc_divisor
    • session.gc_maxlifetime
    IF you hate me, please don't mention it. I know who hates me and who doesn't. You really do not have to make fun of people....

  4. #4
    Join Date
    Aug 2006
    Posts
    235

    Re: How to Install Session in PHP?

    Session support in PHP is a way to preserve certain data across subsequent accesses. This allows you to create customized applications and increase the attractiveness of your site. A user accessing your web page is assigned a unique identifier, called a "session id". It is either stored in a cookie or is propagated in the URL. The session support allows you to save any number of variables that must be preserved across requests. When a visitor accesses your site, PHP will check automatically or on request if there is a session of the same name.
    3.2 (northwood)
    2gig ram
    ATI AIW X800xt 256mb
    Gigabyte GA-8knxp 875p Chipset
    Optiwrite 8X DVD Burner
    Win XP PRO Sp2 (Works Perfectly)
    2 SATA Raptor 74gig Raid 0
    2 7200 IDE 320gig HD

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    Re: How to Install Session in PHP?

    You will have to keep some things in mind that are very important. Suppose, if you set session.auto_start then the only way to save objects in session is to load the class definitions with auto_prepend_file where you load the definitions you need, or you need to use serialize () on your object and unserialize () to retrieve it. All variables are serialized after the request finishes. The variables which are undefined are marked as such. At all subsequent visits, they will not be defined until the user does.

Similar Threads

  1. Replies: 4
    Last Post: 17-01-2011, 11:14 AM
  2. Replies: 4
    Last Post: 24-12-2010, 07:58 AM
  3. Destroying Session in JSP
    By Level8 in forum Software Development
    Replies: 5
    Last Post: 11-03-2010, 04:40 PM
  4. Replies: 3
    Last Post: 31-07-2009, 01:09 PM
  5. PHP Session does not work
    By Octavio in forum Tips & Tweaks
    Replies: 0
    Last Post: 16-07-2009, 07:45 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,434,723.52097 seconds with 16 queries