I am facing very strange issue. On one page, session do not work while on other session exists.
I have 3 pages of asp.net, pageA, pageB & pageC. PageA is return page from Paypal transactiuon. Afer successful transaction, paypal redirect to pageA. Here issue starts:
PageA ---------redirect-----------------> pageB [session exists at A but session do not exist on B- there is only redirection]
PageB ----------redirect-------------------> pageC [Session do no exists on B but exists on C ]
PageC -----------redirect------------------> pageB [Now session exists on B and C ]
What can be issue here, redirect recreates session values again but there was no session on that page before. I am using
response.redirect. I also change redirect code using javascript but nothing helped.
Please help ..Thanks
~~ Please mark the post as ANSWER if it helps you ~~
galaxy_thest...
Member
139 Points
374 Posts
session issue
Jan 30, 2013 05:56 PM|LINK
Hi,
I am facing very strange issue. On one page, session do not work while on other session exists.
I have 3 pages of asp.net, pageA, pageB & pageC. PageA is return page from Paypal transactiuon. Afer successful transaction, paypal redirect to pageA. Here issue starts:
PageA ---------redirect-----------------> pageB [session exists at A but session do not exist on B- there is only redirection]
PageB ----------redirect-------------------> pageC [Session do no exists on B but exists on C ]
PageC -----------redirect------------------> pageB [Now session exists on B and C ]
What can be issue here, redirect recreates session values again but there was no session on that page before. I am using
response.redirect. I also change redirect code using javascript but nothing helped.
Please help ..Thanks
BrockAllen
All-Star
27530 Points
4905 Posts
MVP
Re: session issue
Jan 30, 2013 07:07 PM|LINK
When you do your redirects, don't pass true for the 2nd param.
Response.Redirect("PageB.aspx", true)
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/
galaxy_thest...
Member
139 Points
374 Posts
Re: session issue
Jan 30, 2013 07:17 PM|LINK
Actually, I used
Response.Redirect("PageB.aspx")
Should I add 2nd parameter?
Thanks
BrockAllen
All-Star
27530 Points
4905 Posts
MVP
Re: session issue
Jan 30, 2013 09:05 PM|LINK
Hmmm, nope... when you leave off the 2nd param then it's the same as passing false. IOW, your code is the right way. I'm not sure what the problem is.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/