Member Panel


Sponsors and Ads

Join the Team

Live Tag Cloud

PC Forum PC Help Forum » Web & Networking » Web Design » [PHP] Sessions not working

Web Design - [PHP] Sessions not working posted in the Web & Networking forums; Originally Posted by Ge64 Yeah it still doesnt work How do I do that? like every link must have &PHPSESSID=" . SID ?? Would this work? Code: $nav = ' ...

JOIN US NOW to remove these Ads

Post New Thread  Reply
  #15  
Old 02-28-2006
P C H F R 0 0 l Z
 
Join Date: Oct 2005
Location: Hong Kong
Posts: 234
PC Experience: Good at least
Ge64 - See this Members User comments on their Profile page
Send a message via MSN to Ge64
Default

Originally Posted by Ge64
Yeah it still doesnt work

How do I do that? like every link must have &PHPSESSID=" . SID ??
Would this work?

Code:
$nav = '

<a href="index.php">News</a><br>
<a href="index.php?page=base&sID=' . SID . '">Home Base</a><br>
...';
I did that and I log in, then I press the link and it says

http://ge64.nl/alpha/index.php?page=base&sID=



Edit:

Code:
    $_SESSION['name'] = $name;
    $_SESSION['pass'] = $pass;

    $loginattempt = "successful";
echo SID;
returns nothing


__________________
PCHF RoX ur SoX
:computer1
PC SmAsH0R

Last edited by Ge64; 02-28-2006 at 01:03 AM.
  #16  
Old 02-28-2006
P C H F R 0 0 l Z
 
Join Date: Oct 2005
Location: Hong Kong
Posts: 234
PC Experience: Good at least
Ge64 - See this Members User comments on their Profile page
Send a message via MSN to Ge64
Default

I did a few things but nothing really changed, it still won't pass the session vars. I uploaded a new version of all the code to http://www.ge64.nl/files/src.zip.


__________________
PCHF RoX ur SoX
:computer1
PC SmAsH0R
  #17  
Old 03-01-2006
Spaceman3750's Avatar
Elite Member
My PC
 
Join Date: Jan 2004
Location: Riverton, IL, USA
Posts: 1,511
PC Experience: Very Experienced
Spaceman3750 - See this Members User comments on their Profile page
Send a message via AIM to Spaceman3750 Send a message via MSN to Spaceman3750 Send a message via Yahoo to Spaceman3750
Default

Hmm... Try using session_register() to register your session variables instead. And the proper usage of . SID . is below:

http://www.yoursite.com/index.php?. SID .&op=home

That will insert the SID, including the variable name.

PS - I havn't been able to look at your code yet, the only computer I have had access to today and yesterday is the grandparents computer, because I havn't been home alot lately (mmm... school play hell week: not fun).


__________________
- Ryan
http://www.spaceman3750.info
http://www.conglomerate-game.net

Cisco Academy - CCNA student
  #18  
Old 03-05-2006
P C H F R 0 0 l Z
 
Join Date: Oct 2005
Location: Hong Kong
Posts: 234
PC Experience: Good at least
Ge64 - See this Members User comments on their Profile page
Send a message via MSN to Ge64
Default

Originally Posted by Spaceman3750
Hmm... Try using session_register() to register your session variables instead. And the proper usage of . SID . is below:

http://www.yoursite.com/index.php?. SID .&op=home

That will insert the SID, including the variable name.

PS - I havn't been able to look at your code yet, the only computer I have had access to today and yesterday is the grandparents computer, because I havn't been home alot lately (mmm... school play hell week: not fun).
Tried that, but it still doesn't work


__________________
PCHF RoX ur SoX
:computer1
PC SmAsH0R

Reply
Satellite TV on your PC - over 3000 Channels! Click Here!

Bookmarks

Thread Tools
Display Modes

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 On


All times are GMT +1. The time now is 05:07 AM.
Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC7
All Graphics & Content Copyright © 2004-2008 - PC Help Forum.com


Back to Top
FTD coupons
Lastest FTD coupons and deals. Shop now and save

Air Episodes
Large archive of Anime episodes in a difficult to get AVI format.

Overtime
Learn about overtime laws from the experts at PayMyOvertime.com.