473,386 Members | 2,042 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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?
Jul 17 '05 #1
4 2945
I noticed that Message-ID: <cb********@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/
Jul 17 '05 #2
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

Jul 17 '05 #3
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
Jul 17 '05 #4
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!
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Al Jones | last post by:
This is a repost form the vbscript newgroup - if this isn't the appropriate group would you point me toward one that is. Basically, I seem to be losing session data part way though preparing an...
6
by: Lina Manjarres | last post by:
Hello, I have a session variable in a login page. Then I go to a form page where I uses the ProfileID and the UserID. Then I go to a result page where I would like to use the UserID as a filter,...
4
by: PJ | last post by:
A particular page seems to be having issues with correctly setting Session variables. I am setting a couple of session variables on the Page_Unload event. While stepping through code, the...
31
by: Harry Simpson | last post by:
I've come from the old ASP camp where session variables were not used. When i started using ASP.NET in 2001, I started using them again because it was ok from what I'd read. I've been merrily...
10
by: tshad | last post by:
I have been using the default session state (InProc) and have found that I have been loosing my information after a period of time (normally 20 minutes). Is there anyway to find out how much...
3
by: Alan Wang | last post by:
Hi there, Once my application gets complicated and complicated. I found it's really hard to keep track of Session value I am using in my asp.net application. I am just wondering if anyone have...
3
by: Phillip N Rounds | last post by:
I'm writing a user control which has two states: Active & InActive. I additionally am required that there to be only one active control per page, and all logic has to be contained within the...
18
by: BillE | last post by:
When a user opens a new IE browser window using File-New-Window the integrity of an application which relies on session state is COMPLETELY undermined. Anyone who overlooks the fact that...
26
by: BillE | last post by:
Some ASP.NET applications use Session Variables extensively to maintain state. These should be re-written to use viewstate, hidden fields, querystring, etc. instead. This is because if a user...
12
by: MrHelpMe | last post by:
Hello again all, I've finished my whole application and now I don't like the whole session variables that I am using. I have a form, user fills in info clicks submit and using CDOSYSMail an...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.