March 22nd, 2004, 04:56 AM
a new session everytime
I was wondering if anyone could shed some light on a problem i have.
I have been writing a website in PHP with a authentication system to log users in and out. The code works great (thanks DevShed) it is my webserver setup that is causing me problems. It works fine on other webservers, just not on my one.
everytime i refresh the page I get a new session ID, meaning that as soon as a user logs on their session becomes invalid and they get logged out.
Anyone know why IIS would issue a new session ID everytime?
Windows XP Pro SP1
IIS 5.1 (i think can't really find a deffo version number)
March 22nd, 2004, 06:02 PM
What kind of session ID? An IIS session like Session.SessionID or some PHP session ID?
If it's a PHP session ID I guess you'll have to dig through your PHP installation. You may get strange IIS session ID results if your browser doesn't handle cookies properly, this is just guessing
Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.
March 23rd, 2004, 04:22 AM
I only know how to generate a session id one way and thats a PHP session.
$sess_id = session_id();