Current time: 11-24-2024, 01:29 AM Hello There, Guest! (LoginRegister)


Post Reply 
Add custom $_SESSION vars
Author Message
motokochan Offline
Member
***

Posts: 274
Joined: Jul 2008
Reputation: 1
Post: #3
RE: Add custom $_SESSION vars
It's because session_set_cookie_params() is setting internal PHP variables about a session cookie, it's not actually adding items to the $_SESSION superglobal array. If you want to see these details, you should use session_get_cookie_params(). It's a better idea to set these in php.ini as otherwise every page that handles the session needs that function called.

Also, keep in mind that having such a long session length is a bad idea for security. Remember that the expiration is reset on each use of the session, so 24 hours means that it'll be kept active for 24 hours after the last action.
12-04-2010 01:57 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Add custom $_SESSION vars - Max13 - 11-30-2010, 09:24 PM
RE: Add custom $_SESSION vars - Max13 - 12-02-2010, 07:04 AM
RE: Add custom $_SESSION vars - motokochan - 12-04-2010 01:57 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)