View Full Version : how to pass user info to diffrent pages using sessions?


tony007
02-17-2006, 10:38 PM
Hi all i wonder how i can pass user information such as login name to diffrent pages using sessions. My intention is that i want in diffrent pages the php pages automatically knows who is using the page and where user log name is necessary it is avaliable by just doing echo $username or using $username in queries.Furthermore, i want the sessions some how expire within 15 min or so.I be happy if an expert show me how i can create sessions and how to use it in php pages for above purpuse. Thanks

Kodo
02-18-2006, 03:03 AM
here, this should explain it all.
http://www.devshed.com/c/a/PHP/Creating-a-Secure-PHP-Login-Script/

webster
03-21-2006, 01:47 PM
Also see:

http://php.codenewbie.com/articles/php/1482/Login_With_Sessions-Page_1.html
http://www.free2code.net/plugins/articles/read.php?id=99
http://www.fluidthoughts.com/howto/php/sessions/