Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to mantain session in classic asp sharing it with .net?

we are developing into an asp classic application introducing new asp.net pages. The session variables are shared through the login.asp, everything works fine... The problem that we are facing now is that the asp classic session expires meanwhile the user is navigating the .net pages and tries to go again into an asp page... the session in asp has expired because the user has been browsing for more than 20 minutes the aspx pages.

Thanks in advance Ariel Gimenez

like image 521
Ariel Gimenez Avatar asked Jun 03 '11 21:06

Ariel Gimenez


1 Answers

May be you can keep your Classic ASP session alive when a user browse in a ASPX page by:

  1. adding a hidden iframe in your ASPX page that load an ASP Page

    ' aspx page ....

    <iframe src='keep_session.asp' style='display:none'></iframe>

  2. OR use an AJAX post from your ASPX page every 10 minutes to an ASP page to keep the ASP session active

like image 86
Luka Milani Avatar answered Sep 30 '22 12:09

Luka Milani