![]() |
session id in hidden form input
I want to submit the session id in a hidden input form field.
I've tried several variables, but they all lead me to a page with an invalid session error. I've even tried leaving it out. This is not being done through a template, but through a php file. What's the correct value? |
Basically in vB files the session hash is $session['sessionhash']. vB doesn't use PHP4's session handling do son't try using functions like session_id().
|
yeah I tried that like
value=\"$session['sessionhash']\" and value='".$session['sessionhash']."' but they both made invalid sessions |
What do you mean "invalid sessions"? What kind of error did you get?
BTW in the first line you don't need ' inside the [] brackets. |
Quote:
|
Is the referring page part of vBulletin? i.e is the $session array available there?
|
yes it's part of vbulletin (template: error_invalidsession)
I'm starting to think it's because the 'form' that is submitting is actually being included through php onto the main page. maybe I need to specify a s=$session['sessionhash'] in the url of the include? |
oh but no, the script with the form on it is my own creation. I thought it would inherit the session id of the page it was being included on.
|
All times are GMT. The time now is 05:36 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|