Lost the session

G

Guest

Hi!

I've migrated my web App 1.1 to Asp.Net 2.0 using the VS Migration Wizard,
I've added 4 pages aps.net 2.0, Ajax Extensions. Everything works ok until
yesterday that I've Pubilsh the web site. All the asp.net 1.1 and 2 as.net
2.0 pages works properly but int the other 2 pages Asp.net 2.0, when the page
is loaded, works fine, but in the following request for any page all session
in the web app was lost.
I've tried to remove all content of the Page_Load of the asp.net 2.0 pages
but always happends the same.

It's some known issue?

Thanks!
 
B

BlueJumper.com

Could be a number of things.

Check the web.config and ensure that session is enabled. You may need
to explicitly enable session on in the web.config as the
machine.config may have disabled it.

Are you using AJAX to make the calls to your code behind. Not
completely familiar with ASP.NET AJAX extensions, but Standard Ajax
doesn't store the session cookie and so gets a new session id every
call.

Lastly.. Simplify the problem. Remove what you have released (if you
can) and put up a simple page that does something like increment a
session variable every call. This way you can eliminate all other
factors that may effect the session and so diagnose the problem
better. If the simple page works, start adding in the feature of the
full app bit by bit testing at each stage. Session issues can be very
hard to diagnose.
 

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,770
Messages
2,569,585
Members
45,080
Latest member
mikkipirss

Latest Threads

Top