Thread View: borland.public.delphi.language.delphi.dotnet
5 messages
5 total messages
Started by Herman van Ruitenbeek
Wed, 04 Jun 2008 11:26
Retain session after redirect
Author: Herman van Ruitenbeek
Date: Wed, 04 Jun 2008 11:26
Date: Wed, 04 Jun 2008 11:26
11 lines
1182 bytes
1182 bytes
Hello, I have a dotnet application and have to jump outside my website. In the redirect I give a return page. When comming back to this page I have to login again. Can anyone tell me how to get back to my website with the same session active? Thanks in advance Herman
Re: Retain session after redirect
Author: John Moshakis
Date: Wed, 04 Jun 2008 14:36
Date: Wed, 04 Jun 2008 14:36
26 lines
1433 bytes
1433 bytes
Herman van Ruitenbeek wrote: > Hello, > > I have a dotnet application and have to jump outside my website. > In the redirect I give a return page. > When comming back to this page I have to login again. > > Can anyone tell me how to get back to my website with the same > session active? > > Thanks in advance > Herman Hi Herman, Assuming your using cookies I would check to see when they expire. I would also do the same for the session state as well. Also are you redirecting to another page or opening a new window and how long is the person on the other site before they return ? Cheers, John --
Re: Retain session after redirect
Author: Herman van Ruitenbeek
Date: Fri, 06 Jun 2008 06:50
Date: Fri, 06 Jun 2008 06:50
49 lines
2483 bytes
2483 bytes
Dear John, I'm new to cookies and comming back. The desired construction is like this. I the primairy website you get the articles etc. for your order. Then you press something lik [Order] and are redirected to another website in the same window. After some actions on that website you are returned to a returnpage given in the redirect. Preferable you are stil in the same window. It is possible to add parameters to the return address. It would be nice if session variables are retained (like Session['AppMode'].ToString etc.) My preference is the above method. But I can imagine this is not possible. I'll look at the possibilities of Session state and cookies. Thanks for your tips. Regards Herman John Moshakis schreef: > Herman van Ruitenbeek wrote: > >> Hello, >> >> I have a dotnet application and have to jump outside my website. >> In the redirect I give a return page. >> When comming back to this page I have to login again. >> >> Can anyone tell me how to get back to my website with the same >> session active? >> >> Thanks in advance >> Herman > > Hi Herman, > > Assuming your using cookies I would check to see when they expire. I > would also do the same for the session state as well. > > Also are you redirecting to another page or opening a new window and > how long is the person on the other site before they return ? > > Cheers, > John >
Re: Retain session after redirect
Author: Marc Rohloff [TeamB]
Date: Fri, 06 Jun 2008 12:26
Date: Fri, 06 Jun 2008 12:26
19 lines
2063 bytes
2063 bytes
On Fri, 06 Jun 2008 08:50:37 +0200, Herman van Ruitenbeek wrote: > It would be nice if session variables are retained (like > Session['AppMode'].ToString etc.) Your session variables should still be there if you visit another site as long as you come back before the timeout period (20 minutes by default, IIRC), session variables should normally even be there if you close the browser and open it again. The only reason for this not to be the case, that I can think of, would be if you have enabled cookieless mode. There are two ways to ell 1) look at your web.config file (probably a good idea anyway) or look at the URLs while browsing your site and see if they have extra text appended. -- Marc Rohloff [TeamB] marc -at- marc rohloff -dot- com
Re: Retain session after redirect
Author: Herman van Ruitenbeek
Date: Fri, 20 Jun 2008 10:12
Date: Fri, 20 Jun 2008 10:12
25 lines
1983 bytes
1983 bytes
Thanks Marc, I noticed that it was sometimes available and solved this either way. I will study the web.config more closely. Thanks Herman Marc Rohloff [TeamB] schreef: > On Fri, 06 Jun 2008 08:50:37 +0200, Herman van Ruitenbeek wrote: > >> It would be nice if session variables are retained (like >> Session['AppMode'].ToString etc.) > > Your session variables should still be there if you visit another site > as long as you come back before the timeout period (20 minutes by > default, IIRC), session variables should normally even be there if you > close the browser and open it again. > > The only reason for this not to be the case, that I can think of, > would be if you have enabled cookieless mode. There are two ways to > ell 1) look at your web.config file (probably a good idea anyway) or > look at the URLs while browsing your site and see if they have extra > text appended. >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads