Andy B wrote:

WHy do we need to have a session name for that?
because eventually i want to take the user name (session name/variables/user
info) and create a preferences section of the website im doing and that
would require a constant session name from visit to visit

Ummm... that's why you set a $_SESSION['username'] value. You really
don't need to worry about the name or id of the session (other than resetting it upon login to prevent Session Fixation Attacks).


Sessions are for the current visit, page to page, not to "remember" things across multiple visits. Cookies are used for that (but be aware of security issues there, also, depending on how you implement them).

--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to