473,407 Members | 2,314 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,407 software developers and data experts.

Loosing session variables

HI,

I've an asp.net app like this:

login.aspx (no frame) :- save in session the user and pass
->
framedoc.html :- frameset 2 content
1. menu.aspx
2.docviewver.aspx

Everything work ok until at a random moment (1-5min) when the content of
some variables stored in the sesion is lost.
I'm not a big frameset fan but is a customer request :).

Do you have any ideea how can I fix this ?

Thanx,
-radix

Nov 18 '05 #1
8 2274
mate... you are threading a thin line... the moment you have frameset.. with
two frames you have two sessions on server...
cause each frame is a browser by itself having its own session...
so values set by frame1 in session would not be available to fram2 cause it
has its own session....

--

Regards,

HD
"Radu Colceriu" <ra***********@hotmail.com> wrote in message
news:e9**************@TK2MSFTNGP10.phx.gbl...
HI,

I've an asp.net app like this:

login.aspx (no frame) :- save in session the user and pass
->
framedoc.html :- frameset 2 content
1. menu.aspx
2.docviewver.aspx

Everything work ok until at a random moment (1-5min) when the content of
some variables stored in the sesion is lost.
I'm not a big frameset fan but is a customer request :).

Do you have any ideea how can I fix this ?

Thanx,
-radix

Nov 18 '05 #2
Hi,

thankx for the quick response.
The first page that is NOT in/a frameset (login.aspx) is opening the sesion
as far as I ca imagine and then this page will open the frameset. The point
is that it is working for a random period of time.... until something is
happend :) . The session variables are not altered by any one of the pages
from frameset.
I have no antivirus/backup running, I' using IE6.

-radix
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> schrieb im
Newsbeitrag news:uF**************@tk2msftngp13.phx.gbl...
mate... you are threading a thin line... the moment you have frameset.. with two frames you have two sessions on server...
cause each frame is a browser by itself having its own session...
so values set by frame1 in session would not be available to fram2 cause it has its own session....

--

Regards,

HD
"Radu Colceriu" <ra***********@hotmail.com> wrote in message
news:e9**************@TK2MSFTNGP10.phx.gbl...
HI,

I've an asp.net app like this:

login.aspx (no frame) :- save in session the user and pass
->
framedoc.html :- frameset 2 content
1. menu.aspx
2.docviewver.aspx

Everything work ok until at a random moment (1-5min) when the content of
some variables stored in the sesion is lost.
I'm not a big frameset fan but is a customer request :).

Do you have any ideea how can I fix this ?

Thanx,
-radix


Nov 18 '05 #3
antivirus or a backup wont affect it either way unless they hinder the
session cookie being sent everytime...

okay you login page is not a frameset.. but the login page forwards it to
frameset... that causes a new session to be generated for the second
frame... i actually haven't monitored cause when i use session with frame...
i set those values from a particular frame and always access it in that
frame...

but enable tracing... add your custom attributes to trace.. monitor the
sessionid and the values... at some point.. you are doing something that is
causing server to open up a new session... see what's causing it... (plus
you are not losing the values... you are just opening and using another
session.. i.e. since its a different session you no longer have access to
other session's values... doesn't matter whether you read them or write to
them....

a better way to do it is not to use session specially for login page...
rather try using forms authentication... you need to do a few things... but
basic client info like username and userid can be bound to the
authentication ticket... and since you can access authenticationticket using
HttpContext.Current what session you are using doing matter...

hope this helps...

--

Regards,

HD
"Radu Colceriu" <ra***********@hotmail.com> wrote in message
news:eG**************@TK2MSFTNGP10.phx.gbl...
Hi,

thankx for the quick response.
The first page that is NOT in/a frameset (login.aspx) is opening the sesion as far as I ca imagine and then this page will open the frameset. The point is that it is working for a random period of time.... until something is
happend :) . The session variables are not altered by any one of the pages
from frameset.
I have no antivirus/backup running, I' using IE6.

-radix
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> schrieb im
Newsbeitrag news:uF**************@tk2msftngp13.phx.gbl...
mate... you are threading a thin line... the moment you have frameset..

with
two frames you have two sessions on server...
cause each frame is a browser by itself having its own session...
so values set by frame1 in session would not be available to fram2 cause

it
has its own session....

--

Regards,

HD
"Radu Colceriu" <ra***********@hotmail.com> wrote in message
news:e9**************@TK2MSFTNGP10.phx.gbl...
HI,

I've an asp.net app like this:

login.aspx (no frame) :- save in session the user and pass
->
framedoc.html :- frameset 2 content
1. menu.aspx
2.docviewver.aspx

Everything work ok until at a random moment (1-5min) when the content of some variables stored in the sesion is lost.
I'm not a big frameset fan but is a customer request :).

Do you have any ideea how can I fix this ?

Thanx,
-radix



Nov 18 '05 #4
Hermit, this was only the case in versions of IE before IE 5.5 (some service
pack, I don't remember which), but was fixed after that.
So I guess if Radu is testing with IE before 5.5 service pack xxx, this may
be the problem.

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:uF**************@tk2msftngp13.phx.gbl...
mate... you are threading a thin line... the moment you have frameset.. with two frames you have two sessions on server...
cause each frame is a browser by itself having its own session...
so values set by frame1 in session would not be available to fram2 cause it has its own session....

--

Regards,

HD
"Radu Colceriu" <ra***********@hotmail.com> wrote in message
news:e9**************@TK2MSFTNGP10.phx.gbl...
HI,

I've an asp.net app like this:

login.aspx (no frame) :- save in session the user and pass
->
framedoc.html :- frameset 2 content
1. menu.aspx
2.docviewver.aspx

Everything work ok until at a random moment (1-5min) when the content of
some variables stored in the sesion is lost.
I'm not a big frameset fan but is a customer request :).

Do you have any ideea how can I fix this ?

Thanx,
-radix


Nov 18 '05 #5
HI,

I've IE6SP1

-radu
"Chris Botha" <ch***********@hotmail.com> schrieb im Newsbeitrag
news:OT**************@TK2MSFTNGP10.phx.gbl...
Hermit, this was only the case in versions of IE before IE 5.5 (some service pack, I don't remember which), but was fixed after that.
So I guess if Radu is testing with IE before 5.5 service pack xxx, this may be the problem.

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:uF**************@tk2msftngp13.phx.gbl...
mate... you are threading a thin line... the moment you have frameset..

with
two frames you have two sessions on server...
cause each frame is a browser by itself having its own session...
so values set by frame1 in session would not be available to fram2 cause

it
has its own session....

--

Regards,

HD
"Radu Colceriu" <ra***********@hotmail.com> wrote in message
news:e9**************@TK2MSFTNGP10.phx.gbl...
HI,

I've an asp.net app like this:

login.aspx (no frame) :- save in session the user and pass
->
framedoc.html :- frameset 2 content
1. menu.aspx
2.docviewver.aspx

Everything work ok until at a random moment (1-5min) when the content of some variables stored in the sesion is lost.
I'm not a big frameset fan but is a customer request :).

Do you have any ideea how can I fix this ?

Thanx,
-radix



Nov 18 '05 #6
this is the link you are looking for

http://support.microsoft.com/default...b;EN-US;323752

--
Regards,

HD

Once a Geek.... Always a Geek
"Radu Colceriu" <ra***********@hotmail.com> wrote in message
news:Oj**************@TK2MSFTNGP11.phx.gbl...
HI,

I've IE6SP1

-radu
"Chris Botha" <ch***********@hotmail.com> schrieb im Newsbeitrag
news:OT**************@TK2MSFTNGP10.phx.gbl...
Hermit, this was only the case in versions of IE before IE 5.5 (some service
pack, I don't remember which), but was fixed after that.
So I guess if Radu is testing with IE before 5.5 service pack xxx, this

may
be the problem.

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:uF**************@tk2msftngp13.phx.gbl...
mate... you are threading a thin line... the moment you have
frameset.. with
two frames you have two sessions on server...
cause each frame is a browser by itself having its own session...
so values set by frame1 in session would not be available to fram2
cause it
has its own session....

--

Regards,

HD
"Radu Colceriu" <ra***********@hotmail.com> wrote in message
news:e9**************@TK2MSFTNGP10.phx.gbl...
> HI,
>
> I've an asp.net app like this:
>
> login.aspx (no frame) :- save in session the user and pass
> ->
> framedoc.html :- frameset 2 content
> 1. menu.aspx
> 2.docviewver.aspx
>
> Everything work ok until at a random moment (1-5min) when the

content of > some variables stored in the sesion is lost.
> I'm not a big frameset fan but is a customer request :).
>
> Do you have any ideea how can I fix this ?
>
> Thanx,
> -radix
>
>
>



Nov 18 '05 #7
forms authentication uses session to hold the ticket, so the behavior would
be no different.

most likely the site is recycling

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:u5**************@TK2MSFTNGP11.phx.gbl...
antivirus or a backup wont affect it either way unless they hinder the
session cookie being sent everytime...

okay you login page is not a frameset.. but the login page forwards it to
frameset... that causes a new session to be generated for the second
frame... i actually haven't monitored cause when i use session with frame... i set those values from a particular frame and always access it in that
frame...

but enable tracing... add your custom attributes to trace.. monitor the
sessionid and the values... at some point.. you are doing something that is causing server to open up a new session... see what's causing it... (plus
you are not losing the values... you are just opening and using another
session.. i.e. since its a different session you no longer have access to
other session's values... doesn't matter whether you read them or write to
them....

a better way to do it is not to use session specially for login page...
rather try using forms authentication... you need to do a few things... but basic client info like username and userid can be bound to the
authentication ticket... and since you can access authenticationticket using HttpContext.Current what session you are using doing matter...

hope this helps...

--

Regards,

HD
"Radu Colceriu" <ra***********@hotmail.com> wrote in message
news:eG**************@TK2MSFTNGP10.phx.gbl...
Hi,

thankx for the quick response.
The first page that is NOT in/a frameset (login.aspx) is opening the sesion
as far as I ca imagine and then this page will open the frameset. The

point
is that it is working for a random period of time.... until something is
happend :) . The session variables are not altered by any one of the pages
from frameset.
I have no antivirus/backup running, I' using IE6.

-radix
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> schrieb im
Newsbeitrag news:uF**************@tk2msftngp13.phx.gbl...
mate... you are threading a thin line... the moment you have
frameset.. with
two frames you have two sessions on server...
cause each frame is a browser by itself having its own session...
so values set by frame1 in session would not be available to fram2
cause it
has its own session....

--

Regards,

HD
"Radu Colceriu" <ra***********@hotmail.com> wrote in message
news:e9**************@TK2MSFTNGP10.phx.gbl...
> HI,
>
> I've an asp.net app like this:
>
> login.aspx (no frame) :- save in session the user and pass
> ->
> framedoc.html :- frameset 2 content
> 1. menu.aspx
> 2.docviewver.aspx
>
> Everything work ok until at a random moment (1-5min) when the

content of > some variables stored in the sesion is lost.
> I'm not a big frameset fan but is a customer request :).
>
> Do you have any ideea how can I fix this ?
>
> Thanx,
> -radix
>
>
>



Nov 18 '05 #8
okay... in that case if you have a valid ticket in a the cookie you set (say
i set the expiration to 30 days from today for the authentication..)
and i specify that the ticket is persistant... and i write it to a cookie
mind you the session expires in 20 mins..
i can still access the pages with have a deny to anonymous users. Cause the
ticket that i wrote was not appended to the session cookie... instead it was
written to a seperate cookie...
i can close the instance of browser and browse using a new set of ie pages
and it still works... !!! if so .. either session doesnt time out if your
forms ticket is valid or something seriously wrong with forms
authentication...

--
Regards,

HD

Once a Geek.... Always a Geek
"bruce barker" <no***********@safeco.com> wrote in message
news:uJ**************@tk2msftngp13.phx.gbl...
forms authentication uses session to hold the ticket, so the behavior would be no different.

most likely the site is recycling

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:u5**************@TK2MSFTNGP11.phx.gbl...
antivirus or a backup wont affect it either way unless they hinder the
session cookie being sent everytime...

okay you login page is not a frameset.. but the login page forwards it to
frameset... that causes a new session to be generated for the second
frame... i actually haven't monitored cause when i use session with

frame...
i set those values from a particular frame and always access it in that
frame...

but enable tracing... add your custom attributes to trace.. monitor the
sessionid and the values... at some point.. you are doing something that

is
causing server to open up a new session... see what's causing it... (plus you are not losing the values... you are just opening and using another
session.. i.e. since its a different session you no longer have access to other session's values... doesn't matter whether you read them or write to them....

a better way to do it is not to use session specially for login page...
rather try using forms authentication... you need to do a few things...

but
basic client info like username and userid can be bound to the
authentication ticket... and since you can access authenticationticket

using
HttpContext.Current what session you are using doing matter...

hope this helps...

--

Regards,

HD
"Radu Colceriu" <ra***********@hotmail.com> wrote in message
news:eG**************@TK2MSFTNGP10.phx.gbl...
Hi,

thankx for the quick response.
The first page that is NOT in/a frameset (login.aspx) is opening the

sesion
as far as I ca imagine and then this page will open the frameset. The

point
is that it is working for a random period of time.... until something is happend :) . The session variables are not altered by any one of the

pages from frameset.
I have no antivirus/backup running, I' using IE6.

-radix
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> schrieb im
Newsbeitrag news:uF**************@tk2msftngp13.phx.gbl...
> mate... you are threading a thin line... the moment you have frameset.. with
> two frames you have two sessions on server...
> cause each frame is a browser by itself having its own session...
> so values set by frame1 in session would not be available to fram2 cause it
> has its own session....
>
> --
>
> Regards,
>
> HD
> "Radu Colceriu" <ra***********@hotmail.com> wrote in message
> news:e9**************@TK2MSFTNGP10.phx.gbl...
> > HI,
> >
> > I've an asp.net app like this:
> >
> > login.aspx (no frame) :- save in session the user and pass
> > ->
> > framedoc.html :- frameset 2 content
> > 1. menu.aspx
> > 2.docviewver.aspx
> >
> > Everything work ok until at a random moment (1-5min) when the

content
of
> > some variables stored in the sesion is lost.
> > I'm not a big frameset fan but is a customer request :).
> >
> > Do you have any ideea how can I fix this ?
> >
> > Thanx,
> > -radix
> >
> >
> >
>
>



Nov 18 '05 #9

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

Similar topics

9
by: Patrick | last post by:
Hello I'm running two Webservers Using ASP.NET. both are running the same ASP.NET Application, with <sessionState mode="SQLServer" stateConnectionString="tcpip=127.0.0.1:42424"...
6
by: Lars Netzel | last post by:
This is basic Session handling but it's not working. On a Page1.aspx I have this code: ----------------------------------- If TextBox1.Text = "admin" And TextBox2.Text = "Admin01" Then ...
2
by: Aaric | last post by:
I am developing my web apps on a Win XP Pro SP2 laptop and then uploading them to a Windows Server 2003. My current project involves using session state variables to keep track of user after they...
11
by: Rolf Rosenquist | last post by:
I have a website with several input forms over a number of pages. The information that the user gives is following through the pages as session variables. It has been working good for two years. ...
1
by: Dabbler | last post by:
I set some strings and integers in Session but when I get to my redirected page the values are null. I'm running on localhost Windows XP Pro but using remote SQL 2005 database. Not doing...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.