Session Expired be4 timeout Plz Help me urgently

  • Thread starter net4matrimonials
  • Start date
N

net4matrimonials

I m using session veriables of asp.net on two websites
www.net4professionals.com(job site) and www.net4matrimonials.com
(bride/groom service)

when i create a session on page A i use codeing
session.timeout=180
session("name")="xyz"
response.redirect("myaccountpage.aspx")

on page B to access session variable i use
sub onpage_load
label1.text=session("name")
end sub

but on myaccountpage.aspx the session expired within 10-20 minutes
inspite of 180 minutes

plz help me urgently on net4professionals at yahoo dot com
 
G

Guest

you have to put

session.timeout=180

in myaccountpage.aspx too...
and also try the next code for when your user stays on the page longer then
180 minutes.

if trim("" & session("name")) = "" then
response.redirect("A.aspx")
end if

if this post was helpfull...click on yes on the bottom of the post :p

greets,

interwanderer
 

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

Top