session id changes when submit a form

General discussions related to php

Moderators: macek, egami, gesf

lilly
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

Hi
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

seandisanti
php-forum Fan User
php-forum Fan User
Posts: 838
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: Google [Bot] and 1 guest

cron