Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session Problem

Status
Not open for further replies.

xenomage

Programmer
Jun 27, 2001
98
SG
Hi All,

got this problem.
i have a website running on IIS 5 using asp and using frames.

The logon page is on the left frame of the page. And when user login, i change certain Session variables so as to tell the system that the user has log on. But for some reason, the changes in the session variables is not reflected on the log on page itself. Upon refreshing, the changes is then reflected.

.
.
.
if rstPass("UserPassword") = Request.Form("txtPassword") then
Session("Logon") = true
'refresh the page
end if
.
.
.
if Session(&quot;Logon&quot;) <> true then
'show logon page
end if

the logon page will still show...sigh...

Any ideas??

xeno
 
Of course it will, you didn't put nothing about:

if Session(&quot;Logon&quot;) == false

Or it's just that i didn't see the rest of the code...



Have Fun...

Sharky99 >:):O>
 
thanks sharky,

i wish the problem is that simple. In fact, this problem only happen on certain browser. i'm using IE6.0.2600.0000. However, when i use another pc's with the same browser, the problem is not there??!!??

i tried to tune my browser to the same setting as of the other pc but it still didnt' work.

any more ideas why??

xeno
 
Found the problem to be becoz of Response.Expiry. Previously i set it to 1 and some browser actually refreshes immediately while some just get the page from it's cache.

Settling it to 0 will work fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top