tauchai83 Posted January 20, 2007 Share Posted January 20, 2007 is it possible certain page i put session_start() on each page and some page i use cookie to store the username? plz advise..thank you...i afraid thre will be a clash...this is bcoz i using session_start and my partner use cookie...sigh... Link to comment https://forums.phpfreaks.com/topic/34949-session/ Share on other sites More sharing options...
printf Posted January 20, 2007 Share Posted January 20, 2007 Just create a if() block, first testing for the COOKIE['var'], if it's found then use the COOKIE['var'] to set the session, if it's not found then check for the session name in the COOKIE, if that's found, use that, if it's not found, send them to the login form. You set different methods to control access, but I think it would be better to spend a few minutes and have you and your partner create a standard method that both of you can implement and follow.printf Link to comment https://forums.phpfreaks.com/topic/34949-session/#findComment-164844 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.