Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP sessions, Cookies and IE settings...

Status
Not open for further replies.

Sleidia

Technical User
May 4, 2001
1,284
FR
Good Morning!

Knowing that "session.use_trans_sid" is enabled on
my server, and that it is said that such a setting
would allow the use of PHP sessions even if users
don't have cookies enabled, I've done a test with IE:

There are two types of cookies in the cookies settings.
"normal cookies" and "session cookies".
When I disable session cookies, php sessions won't work.
Is it normal?
Are we talking about the same "session" (cookie session vs
php session)?

If it is the case, is there a way to use php sessions even when the two types of cookies are disabled?

What I don't understand also is that, knowing that session.use_trans_sid should allow session ID to be sent via URLs, how could it be possible that "cookie session" shoud be enabled?

I guess I am doing something wrong.

I would be definitively grateful to you if you could
tell me what it is.
Thanks a lot!





 

Doing some more research on the manual brought me to the following post:

-----------------------------
When using Header("Location: url"), you must add a
"?".sid to the end or your session will not carry to the next
page. i.e. Header("Location: url?".sid) :(
----------------------------

I've changed all my Header requests but the problem is still there. Do I have to add SID to all the html links??
I doubt it though...

Something is wrong, but I don't know what.
 

No useful comment yet?
Please, come up with some nice idea....
...I've a load of cute little stars to give away!

Can't anyone tell me how to pass the session ID on
all pages simply without the use of cookies?

See you.
 
you can have your SID automatically passed through several PHP pages by compiling PHP with --with-trans-sid .
 
Thanks for the feedback!

I think I've read in the manual that compiling PHP
with trans-sid enabled can be done only on the CGI
version.
Considered that the CGI version is supposed to be a
bit slower, I'm quite reluctant to re-compile it.

Still, I don't understand the meaning of the second
cookie option in IE. "Cookie Session" has anything to
do with sessions used by PHP?

Anyway, I've stopped wasting my time caring for people
who don't have cookies enabled because it is such a hassle.
When you have a complex site with plenty of forms, making
efforts to pass those bloody session IDs plus variables
you want to keep on all pages is a nightmare.

I really don't understand why it is impossible to have
session support for cookie-disabled browsers on the
non-CGI version. Actually, this is the most wanted
piece of info I would need!

One more thing: when registering variables on a session,
where variables physically go? In the client cookie or
in the server's temp directory?

Have a good day.

 
The sessions are saved in the "serialize" format in the
servers /tmp folder.. (or where specified in php.ini)

Lunatic
lunatic @ skonux.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top