Session idea [SOLVED]
Posted: Tue May 08, 2007 4:08 am
I need an idea for my code to handle sessions to members in my site
I know my following question maybe very dumb...
imagine my site like flickr.com
I make a session to every member login the site let's say $_SESSION['member']
when the the member click on any page -> I check the session and compare his identity with account and decide if he is the man he can administrate his pages else the pages will be shown to him as guest
the question here....when a member try to see other member page what is the best way to handle it without loosing his identity.
may I make a new session variable and name it for ex.[ auth_guest ] and destroy the member session variable
or what??
I know there's alot of ideas her,but I seek for brilliant one
I know my following question maybe very dumb...
imagine my site like flickr.com
I make a session to every member login the site let's say $_SESSION['member']
when the the member click on any page -> I check the session and compare his identity with account and decide if he is the man he can administrate his pages else the pages will be shown to him as guest
the question here....when a member try to see other member page what is the best way to handle it without loosing his identity.
may I make a new session variable and name it for ex.[ auth_guest ] and destroy the member session variable
or what??
I know there's alot of ideas her,but I seek for brilliant one