473,506 Members | 16,951 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

session loss

Hi,

I've been searching for a long time, but couldn't come up with a
solution or a clue, so I submit my case to your attention :

1. On a Windows client, an application creates a temporary htm file and
opens it with IE 6. This file only contains a redirection instruction
to an outside URL :

<META HTTP-EQUIV=Refresh
CONTENT="0;url=http:/my.url.com/?params=zdazdazda">

2. once I navigate at this adress, everything is fine until the site
opens a pop-up window, I close it _and_ try to follow another link
(still inside the site) : the client loses the session reference

On the server side, PHP based, the file containing the session data
still exists in /tmp.

What I can do :
- update the temporary htm file
- modify the php files
What I can't do :
- skip the Windows app.
- use another browser

My config :
client : WinXP SP2 + IE 6.0.2800
server : L.A.M.P.

I'd be very willing to discuss with you any solution.

Regards.

Jul 17 '05 #1
5 1931
LucasGT wrote:

Hi Lucas,
Hi,

I've been searching for a long time, but couldn't come up with a
solution or a clue, so I submit my case to your attention :

1. On a Windows client, an application creates a temporary htm file and
opens it with IE 6. This file only contains a redirection instruction
to an outside URL :

<META HTTP-EQUIV=Refresh
CONTENT="0;url=http:/my.url.com/?params=zdazdazda">
That is a strange URL, but if it works, fine. :-)

2. once I navigate at this adress, everything is fine until the site
opens a pop-up window, I close it _and_ try to follow another link
(still inside the site) : the client loses the session reference
Oops?
The popup makes the session go away?
My first guess would be to investigate that popup thing.
Your redirection html file has nothing to do with it (I expect).

If you go to the side, does the same popup also make the session disappear?

Another thing: How can the popup delete the session? Are you the one who
owns this code and can you hunt down the problem from there?

The only thing I can think of is that the code that resides in the pop-up
code (or associated with) is responsible for ending the session.

Another more farfetched senario would be that javascript deletes the cookie
that contains the sessionid.
But then again: If it is your code, you would know...
Regards,
Erwin Moller

On the server side, PHP based, the file containing the session data
still exists in /tmp.

What I can do :
- update the temporary htm file
- modify the php files
What I can't do :
- skip the Windows app.
- use another browser

My config :
client : WinXP SP2 + IE 6.0.2800
server : L.A.M.P.

I'd be very willing to discuss with you any solution.

Regards.


Jul 17 '05 #2
>><META HTTP-EQUIV=Refresh
CONTENT="0;url=http:/my.url.com/?params=zdazdazda">


When sending a redirect the session isn't always sent with it. You most
likely will need to attach the session id if it is not contained within
a cookie (sometimes they are sometimes not).

Mike
Jul 17 '05 #3
>> <META HTTP-EQUIV=Refresh
CONTENT="0;url=http:/my.url.com/?params=zdazdazda">
That is a strange URL, but if it works, fine. :-)
Actually, the true URL is more bizarre than this one, but if it works,
fine :-D
If you go to the side, does the same popup also make the session

disappear?

I'm afreaid I don't understant what you mean by " If you go to the side
" ?

in fact, I don't own the code but have access to it, and I'm able to do
a lot of change in it
I'll try to see if / how the pop-up can delete the session (cookie) on
the client side. I'm quite sure it ain't a javascript thing, but what I
didn't tell you is that the popup is a pdf.

Another thing : if I copy/paste the _strange_ URL directly in a browser
window, no problemo. The session's never lost.

Thank you for your advices. I'll inform you of my progress.

Jul 17 '05 #4
Hi Mike,

This file, created on the client side, doesn't set any session. The
session is set once on the server side via the 'session_start' php
instruction.
My guess is that the session cookie is then sent back to the client.

Thanks anyway, this may be a solution : force the session id before
reaching the server.

But if I could avoid this (and it worked), I'd be glad :)

Jul 17 '05 #5
LucasGT wrote:
Hi Lucas,
<META HTTP-EQUIV=Refresh
CONTENT="0;url=http:/my.url.com/?params=zdazdazda">
That is a strange URL, but if it works, fine. :-)


Actually, the true URL is more bizarre than this one, but if it works,
fine :-D
If you go to the side, does the same popup also make the session

disappear?

I'm afreaid I don't understant what you mean by " If you go to the side
" ?


You don't understand because I make a typo.
Sorry. :-)
I ment SITE as in website.

My question to you was: If you visit the http:/my.url.com/?params=zdazdazda
straight without the redirection, and the popup comes up, is your session
lost too?
Because if that is the case: The popup alone is responsible for the
sessionloss.

in fact, I don't own the code but have access to it, and I'm able to do
a lot of change in it
I'll try to see if / how the pop-up can delete the session (cookie) on
the client side. I'm quite sure it ain't a javascript thing, but what I
didn't tell you is that the popup is a pdf.

Another thing : if I copy/paste the _strange_ URL directly in a browser
window, no problemo. The session's never lost.
excactly. That is what I wanted you to test. :-)
Hmm...

Honestly I am baffled.
This must be something very obscure.

Thank you for your advices. I'll inform you of my progress.


Please do: I am very curious what it turns out to be.

Regards,
Erwin Moller

PS: A tip.
I had a lot of help using a developerplugin for firefox to solve
session/cookie related problems.
Look for: Web Developer 0.9.3 "Adds a menu and a toolbar with various web
developer tools"

for example: Maybe you are using session_start(), but you do not use it on
every page. With this tool you can easily compare what changes in the
cookies and what is send. Look for PHPSESSIONID, or whatever you called it
in you php.ini.
Jul 17 '05 #6

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

Similar topics

1
2840
by: db_guy | last post by:
Hi, we have a php-based application that is hosted by Yahoo! Webhosting. Ever since the application was created, it has been plagued by periodic session data loss. Here's a typical example: We...
14
2040
by: Michael Carr | last post by:
I have an intermittent problem that occurs on a very small number of browsers that access my website. The strange thing is this: my site works perfectly for 99.9% of browsers. The behavior...
4
2746
by: Chris | last post by:
When a request comes into a page on my ASP.net site and a session is not found, I want to detect whether the request is an initial request or if the user did have a session going that has now been...
7
1219
by: Chris | last post by:
I'm on a project where the prevoius developer wrote code like below. I thought stuff like this was bad? Isn't he putting a page into a session object? And what we are trying to do is hit the db via...
6
1986
by: Steven Spits | last post by:
Hi, We're thinking of moving session from inproc to a state server. My question is: should we expect a difference in performance? Is it noticeable? Steven - - -
8
1674
by: Tim W. | last post by:
Chaps. We are working with SQL-Server based Sessions in the following environemtn: Win-Server 2K3 incl. IIS, Dot Net Framework 1.1, SQL2K SP3a, German. We are defining a Session-Variable...
3
2073
by: James Hunter Ross | last post by:
Friends, My web.config session setting is timeout=20, but in code we set the timeout to override this to some user preference, often 40 minutes, (specified by the user in seconds). But even in...
14
2273
by: GaryDean | last post by:
The web.config in my asp.net application, running on Server2003, has this entry: <sessionState mode="InProc" timeout="40". In IIS the asp.net State Management timeout setting is 40 for my website....
3
1984
by: Martin Kulov [MVP] | last post by:
Hi, I am wondering if this problem is still valid for ASP.NET 2.0. "To maintain session state across different Web servers in the Web farm, the application path of the Web site (for example,...
6
2036
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I have a web application vs2005 and it looks like a condition is causing session veriables to be lost. This does not seem to be happening too often. The web application allows uploading and...
0
7218
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7307
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
7370
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...
0
7478
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5614
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4701
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1532
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
409
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.