if cookie is disabled then session will work or not?????

This is a discussion on if cookie is disabled then session will work or not????? within the PHP Language forums, part of the PHP Programming Forums category; hi today i read php5 and mysql book and i came to know that if cookie is enabled on client ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-15-2005
vishal
 
Posts: n/a
Default if cookie is disabled then session will work or not?????

hi

today i read php5 and mysql book and i came to know that

if cookie is enabled on client machine then
php will use cookies to handle sessions
else if cookie is disabled on client machine
check is made to ensure that if php5 is configured with
--enable-trans-sid and --enable-track-vars option. If yes then php will
pass session id using post method automatically and we do not need to
worry about it. we just have to use sesssion functions regularly. If No
then we can pass session id using SID constant like below

<a href="index.php?<? echo(SID); ?>" >click here</a>

i checked on my computer and i found that in my computer the php5 is
not configured with above options because the php is not pssing
session-id automatically and when i try to print constant variable SID
it shows me the session id.

now i don't know how to configure php with --enable-trans-sid and
--enable--track-vars option.pls help me that how to configure it. i
have seen the file php.ini in windows directory but it doed not contain
above two options.

thxs for your help in adavance....

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:54 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0