SessionState

  • Thread starter Thread starter Mauricio
  • Start date Start date
M

Mauricio

Hi!

I´m trying to store some objects in the Session but the
session object is lost when I use a Response.Redirect
command.

Using a debugger, I can see that there is an
HttpSessionException afeter the Redirect. So is it right??

What is the difference between Response.Redirect and
Server.Transfer???

Regards,
Mauricio
 
Response.Redirect will involve a round trip back to the client. You're
telling the browser to come back to the server on a different URL.
Server.Transfer will transfer execution to another aspx page while remaining
on the server - thus no round-trip back to the client.

Is the client accepting session cookies?

Hi!

I´m trying to store some objects in the Session but the
session object is lost when I use a Response.Redirect
command.

Using a debugger, I can see that there is an
HttpSessionException afeter the Redirect. So is it right??

What is the difference between Response.Redirect and
Server.Transfer???

Regards,
Mauricio
 
Hi!

My browser is accepting session cookies....

It´s very strange. In one page, I can add items to the
session variable. Then, I redirect to another page.

I´m using a custom handler, so the handler proccess the
request using the method:

ProcessRequest(HttpContext context)

But when I look inside the context object, the session is
NULL!!!

I don´t know if it can be a configuration issue or maybe
something with the handler...

I will apreciate your help.

Thanks,
Mauricio.
 

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

Back
Top