Session variables in IE

This is a discussion on Session variables in IE within the PHP Language forums, part of the PHP Programming Forums category; Why on earth would the security settings affect session variables? We're not setting a cookie here. I'm just ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-25-2004
Matt
 
Posts: n/a
Default Session variables in IE

Why on earth would the security settings affect session variables?
We're not setting a cookie here. I'm just trying to carry one session
variable over from one page to the next. If the security settings in IE
are set to "high", it doesn't work. What gives?
Reply With Quote
  #2 (permalink)  
Old 06-25-2004
Geoff Berrow
 
Posts: n/a
Default Re: Session variables in IE

I noticed that Message-ID: <cbgaku$pff@odak26.prod.google.com> from R.
Rajesh Jeba Anbiah contained the following:

>> Why on earth would the security settings affect session variables?
>> We're not setting a cookie here.

>
>Wrong idea. Indeed, session uses cookie.


But it doesn't have to.

You can pass it via the url, e.g.
<A HREF="nextpage.php?<?php echo strip_tags(SID)?>">

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Reply With Quote
  #3 (permalink)  
Old 06-25-2004
Erwin Moller
 
Posts: n/a
Default Re: Session variables in IE

Matt wrote:

> Why on earth would the security settings affect session variables?
> We're not setting a cookie here. I'm just trying to carry one session
> variable over from one page to the next. If the security settings in IE
> are set to "high", it doesn't work. What gives?


Hi Matt,

In the stateless client-server-world:
To create a session the server needs to know which client it is talking to.
This is done by sending an unique long string of characters (sessionid) to
the client.
Next time the client sends a request to the server, it sends this sessionid
with it.

Most of the time this sessionid is stored in a coockie....
You can also use URL-rewritting to code the sessionid in the URL.

As for M$ IE-exploder: I *think* setting to high security means blocking
coockies for IE. Not sure, dropped that securityhole ages ago.

Hope that helps.

Regards,
Erwin Moller

Reply With Quote
  #4 (permalink)  
Old 06-26-2004
James McIninch
 
Posts: n/a
Default Re: Session variables in IE

Matt wrote:

> Why on earth would the security settings affect session variables?
> We're not setting a cookie here. I'm just trying to carry one session
> variable over from one page to the next. If the security settings in IE
> are set to "high", it doesn't work. What gives?


A session requires a cookie to store the session id. This not a PHP specific
thing. However, PHP does have a configuration option that forces the
session id to be appended to the URL rather than use a cookie (as a work
around to things not allowing cookies).
--
remove .nospam from e-mail address to reply
Reply With Quote
  #5 (permalink)  
Old 06-27-2004
Mudge
 
Posts: n/a
Default Re: Session variables in IE

James McIninch wrote:

> Matt wrote:
>
>> Why on earth would the security settings affect session variables?
>> We're not setting a cookie here. I'm just trying to carry one session
>> variable over from one page to the next. If the security settings in IE
>> are set to "high", it doesn't work. What gives?

>
> A session requires a cookie to store the session id. This not a PHP
> specific thing. However, PHP does have a configuration option that forces
> the session id to be appended to the URL rather than use a cookie (as a
> work around to things not allowing cookies).



Damn it. I was going to give that answer. Can you believe it, I knew an
answer!
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:47 AM.


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