vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   session id in hidden form input (https://vborg.vbsupport.ru/showthread.php?t=36831)

The Keeper 04-01-2002 10:13 AM

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?

Admin 04-01-2002 10:22 AM

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().

The Keeper 04-01-2002 10:33 AM

yeah I tried that like

value=\"$session['sessionhash']\"

and

value='".$session['sessionhash']."'

but they both made invalid sessions

Admin 04-01-2002 10:42 AM

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.

The Keeper 04-01-2002 11:05 AM

Quote:

The action you have attempted could not be performed as your session appears to be invalid. Click the below link to attempt this action again with a new session.
Try this action again!
Clicking 'try this action again' actually fixes it, but I would prefer to bypass the step

Admin 04-01-2002 11:07 AM

Is the referring page part of vBulletin? i.e is the $session array available there?

The Keeper 04-01-2002 12:34 PM

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?

The Keeper 04-01-2002 12:36 PM

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
  • Page Generation 0.01075 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete