Session and Cookies
Posted: Wed Aug 01, 2007 2:32 am
Hi all,
please tell me one thing about session:
I've found if a user will disable Cookies in his Browser (FireFox,IE7) then it directly affects session, means I cannot create a session if user disable the cookie. Someone told me to turn off this option in php.ini
session.use_cookies = 1 (turn it to '0')
It worked fine, but the thing is, we have some other sites on this server as well. So is there a way to turn this option off using some php code or function?
or is there a way to separate the session functionality from cookie involvement.
furthermore, I use session in this way:
regards,
Waqas
please tell me one thing about session:
I've found if a user will disable Cookies in his Browser (FireFox,IE7) then it directly affects session, means I cannot create a session if user disable the cookie. Someone told me to turn off this option in php.ini
session.use_cookies = 1 (turn it to '0')
It worked fine, but the thing is, we have some other sites on this server as well. So is there a way to turn this option off using some php code or function?
or is there a way to separate the session functionality from cookie involvement.
furthermore, I use session in this way:
Code: Select all
$_SESSION['user_id'] = "123";Waqas