PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old September 4th, 2002, 06:24 PM
alsaffar alsaffar is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 58 alsaffar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Passing Session ID ... Please HELP

I have problem with passing the session ID, although session.use_trans_sid is set to 1 but the SID isn't inserted automaticaly in the URL if the cookies are disabled in my browser!

It should works as its mentioned at http://www.php.net/manual/en/ref.session.php

These are my test scripts:

Session1.php:
<?
session_start();
$IPAddress = getenv ("REMOTE_ADDR");
session_register("IPAddress");
echo "My IPAddress is $IPAddress";
?>
<a href="Session2.php"> Click here to test session variable</a>

Session2.php:
<?
session_start();
$IPAddress = $HTTP_SESSION_VARS[IPAddress];
echo "My IPAddress is $IPAddress";
?>

Do I have to do extra coding to make the SID inserted automaticaly if the cookies are disabled?

PHP Version: 4.0.6

Reply With Quote
  #2  
Old September 4th, 2002, 08:10 PM
guyer guyer is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Bloomington, IN USA
Posts: 47 guyer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via Yahoo to guyer
RE: Passing Session ID ... Please HELP

From the manual:

Note: For PHP 4.1.2 or less, it is enabled by compiling with --enable-trans-sid. From PHP 4.2.0, trans-sid feature is always compiled.

Have you checked your compile options?

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > Passing Session ID ... Please HELP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway