Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

session id changes when submit a form

General discussions related to php

Moderators: macek, egami, gesf

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
lilly
New php-forum User
New php-forum User
 
Posts: 1
Joined: Sat Nov 03, 2012 1:42 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.
seandisanti
php-forum Fan User
php-forum Fan User
 
Posts: 787
Joined: Mon Oct 01, 2012 12:32 pm


Return to PHP General

Who is online

Users browsing this forum: No registered users and 3 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.