session state blues

A

Akshay Kumar

I am storing session state in sql server.
Everything works great on single server.
When I deployed it to web farm this is what happens :-

On Page1.aspx.cs I do this :-

Session["customerid"]= "IL0981"
Then later I do server.Transfer to Page2 and
inn Page2.aspx.cs (Page_Load)
There is a peice of code in page2 :-
if (session["customerid"]==null)
server.transfer(logon.aspx)

Now many times inspite of session variable being set in previous page , it
is tranferred to logon.aspx
Any ideas why this is happening.

Regards,
AK
 

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

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top