session id changes when submit a form

General discussions related to php

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Sat Nov 03, 2012 1:42 pm

session id changes when submit a form

Postby lilly » Sat Nov 03, 2012 1:50 pm

when i submit a form the session id changes in a page (and stick the same in single tab for other pages) but it is different in different tabs. how to fix that ?

thanks in advance

php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: session id changes when submit a form

Postby seandisanti » Mon Nov 12, 2012 2:54 pm

It shouldn't be changing on form submit, unless you're not doing a session_start() on the page processing the submission, or doing a session_regenerate_id(). paste the code from the form page, and the submission page if they're different pages and we will be more able to help. We can't troubleshoot a problem we can't recreate.

Return to “PHP General”

Who is online

Users browsing this forum: No registered users and 2 guests