Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
cant get session variables working
Old 06-28-2006, 09:21 AM cant get session variables working
numbenator's Avatar
Webmaster Talker

Posts: 523
Location: London
Trades: 0
Hi,

Im starting a session variable and setting in the below way :

session_start();
$_SESSION['pid'] = 'test';

and then in the header, there is

header("Location: http://dev.thefirstpost.co.uk/confirm.php?status=3");


I attempt to output the session in confirm.php like below :


<?php echo $_SESSION['pid'];

?>


And get NOTHING..... Could someone PLEASE tell me what i am doing wrong cause i think this is so simple it's annoying.

cheers


Steve
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
 
Register now for full access!
Old 06-28-2006, 11:55 AM Re: cant get session variables working
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
You might try passing the sid in the url:
header("Location: http://dev.thefirstpost.co.uk/confirm.php?status=3" . SID);

If thats not working, try setting session_save_path() to make sure the sessions are being stored before starting the session, just change the permissions to the save path.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 06-28-2006, 11:12 PM Re: cant get session variables working
ChancesAre's Avatar
Skilled Talker

Posts: 84
Trades: 0
your missing session_start in the other file?
ChancesAre is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to cant get session variables working
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11686 seconds with 12 queries