vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   sessions... (https://vborg.vbsupport.ru/showthread.php?t=35685)

Goldfinger 03-03-2002 09:44 PM

sessions...
 
ok i was reading in the php manual about the session_id() function and my question is.. will it automatically grab the session_id that i placed in the url?

?s=<?=$PHPSESSID?>&page=blah

?? or do i need to say..

session_id($s);

TECK 03-04-2002 02:01 AM

VB use:
PHP Code:

<a href="$PHP_SELF?s=$session[sessionhash]">link</a

other use:
PHP Code:

<a href="$PHP_SELF?PHPSESSID=<?php echo session_id() ?>">link</a>

regards,
nakkid.

Goldfinger 03-04-2002 05:14 AM

um.. this isnt for vbulletin .. this is for my own script :).

Goldfinger 03-04-2002 05:16 AM

and im talking about grabbing the session in other pages.. i think using ..

session_id($s) would work.. but im just trying to make sure..

TECK 03-04-2002 06:19 AM

the second code line is correct. session_id() returns the session id for the current session. if the id is specified, it will replace the current session id. SID can also be used to retrieve the current name and session id as a string.
PHP Code:

session_id(SID

note that i didnt use $.

Admin 03-04-2002 11:24 AM

Quote:

Originally posted by nakkid
VB use:
PHP Code:

<a href="$PHP_SELF?s=$session[sessionhash]">link</a

other use:
PHP Code:

<a href="$PHP_SELF?PHPSESSID=<?php echo session_id() ?>">link</a>

regards,
nakkid.

OT: vBulletin doesn't use PHP's built in session handler, which is why it's much different. :)


All times are GMT. The time now is 05:57 AM.

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.01033 seconds
  • Memory Usage 1,725KB
  • 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
  • (5)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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