vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   $session['sessionurl'] no value in showthread.php - why? (https://vborg.vbsupport.ru/showthread.php?t=80380)

Spinball 04-22-2005 04:38 PM

$session['sessionurl'] no value in showthread.php - why?
 
Folks,
I'm trying to pass the current session over to an external script near the end of showthread.php but $session['sessionurl'] has no value. Which is odd because it is used all over the place and I thought it always had a value. Any idea why not?
Thanks.

Marco van Herwaarden 04-22-2005 06:46 PM

Did you make $session a global? Can you access other $session variables?

Spinball 04-22-2005 07:05 PM

Thanks MarcoH64,
this is a slight modification to showthread.php just before the
PHP Code:

// #############################################################################
// output page 

bit at the bottom. I would have thought that the session variable would already be populated since it's being used elsewhere in the script.
I tried [sessionhash] aswell but that was empty, too.

Marco van Herwaarden 04-22-2005 07:21 PM

$session['sessionurl'] only holds a value if you are not using cookies i think. Same goes for the other $session elements if i am not mistaken.

You are either using cookies, or $session.

Spinball 04-25-2005 08:07 AM

Ah ok, Marco, so do you know how I can pass session information to an external script, please?

Neo 04-25-2005 11:29 PM

trying using $_SERVER['REQUEST_URI']?

Quote:

Originally Posted by Spinball
Ah ok, Marco, so do you know how I can pass session information to an external script, please?

one question on that, do you need it to be secure?

Marco van Herwaarden 04-26-2005 03:39 AM

You should never trust any information that comes from outside a script. Always validate it before using.


All times are GMT. The time now is 01:59 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.00928 seconds
  • Memory Usage 1,721KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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