Sessions when using Framed web site?

G

Guest

Hello, I currently use session variables to store some basic values on an intranet site internally. However, sometimes those session values do not come through and other time sthey do yet the application keeps running seemingly eventhough pages catch for session-ending. Our intranet site has 4 frames running all the time. When a user signs into the site on one main page (no frames) the session is populated. When the 4 frames load up, are the sessions valid within each frame or should i populate the session variables within each frame as well? Just curious as to how ASP.NET session values are managed on the server side when in a framed environment. Thanks so much!
 
S

Steve C. Orr [MVP, MCSD]

This is one of the many reasons that using frames in .NET is generally a bad
idea.
Usually you're better off partitioning logical sections of your page into
web user controls.
Here's more info:
http://msdn.microsoft.com/library/d...n/html/vbconintroductiontowebusercontrols.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vboriwebusercontrols.asp
http://msdn.microsoft.com/library/d...l/vbconWebUserControlsVsCustomWebControls.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


Christopher said:
Hello, I currently use session variables to store some basic values on an
intranet site internally. However, sometimes those session values do not
come through and other time sthey do yet the application keeps running
seemingly eventhough pages catch for session-ending. Our intranet site has
4 frames running all the time. When a user signs into the site on one main
page (no frames) the session is populated. When the 4 frames load up, are
the sessions valid within each frame or should i populate the session
variables within each frame as well? Just curious as to how ASP.NET session
values are managed on the server side when in a framed environment. Thanks
so much!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top