Passing session in POST
Posted by: mmp (---.elisa-laajakaista.fi)
Date: November 29, 2008 09:19PM

On my 1st page, I have a session in place. Let's say its PHPSESSID=oednjb...

On my 1st page, I have a following form structure:

<form method='post' action='newfolder.php'>
<input type='text' name='foldername'>
<input type='submit' value='Create folder'>
<input type='hidden' name='parent' value=3>
</form>

However, when I submit the form, newfolder.php, the session does not carry over to newfolder.php even though it has session_start(); in the beginning.

I didn't see any change even when I replaced newfolder.php with full URL. So what do I have to do to get the session carry over to newfolder.php ?

Options: ReplyQuote
Re: Passing session in POST
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: November 29, 2008 09:26PM

can u print up the path in the browser on both pages from "http.." all the way to ".php"

a path for each page

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Passing session in POST
Posted by: mmp (---.elisa-laajakaista.fi)
Date: November 30, 2008 03:02PM

Was that a question, or a suggestion?

Anyway, full URL is http ://localhost/test/newfolder.php and I tried that as well yesterday, without success.

However, adding SID to the action name solved the problem:
"<form method='post' action='http://localhost/test/newfolder.php?" . SID . "'>"



Edited 1 time(s). Last edit at 11/30/2008 09:42PM by mmp.

Options: ReplyQuote


Sorry, only registered users may post in this forum.