473,403 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Session timeout & method="post"

I have a current web application that utilizes a login to authenticate users
into the application. Once I authenticate them, I store away the user's
name in a Session variable. I then utilize this check to confirm the
session has not timed out (isLogon.asp - which I include on every page).

if Session("user") = "" then
call setURL()

Response.Redirect "login.asp"
end if

function setURL()
Session("TargetPage") = Request.ServerVariables("PATH_INFO")
Session("QueryString") = Request.ServerVariables("QUERY_STRING")
end function

I then utilize this function to upon login return the user back to where
they left:

function getURL()
dim url

if Session("TargetPage") <> "" then
url = Session("TargetPage")

if Session("QueryString") <> "" then
url = url & "?" & Session("QueryString")
end if
end if

getURL = url
end function

This all assuming using the "get" method on forms - which was fine given the
limited data being collected on the form.

A new requirements has been given that will require lots of data (well over
the QueryString limits). So seems I need to go to the "post" method on my
forms. However, with this method how do I ensure I return the user to the
appropriate location upon a session timeout??

Any pointers would be most appreciated.

BBB
Nov 18 '05 #1
3 2447
"Billy Boone" <b3******@insightbb.com> wrote in message
news:LSbMc.152326$JR4.148104@attbi_s54...
I have a current web application that utilizes a login to authenticate users into the application. Once I authenticate them, I store away the user's
name in a Session variable. I then utilize this check to confirm the
session has not timed out (isLogon.asp - which I include on every page).
<snip>
This all assuming using the "get" method on forms - which was fine given the limited data being collected on the form.

A new requirements has been given that will require lots of data (well over the QueryString limits). So seems I need to go to the "post" method on my
forms. However, with this method how do I ensure I return the user to the
appropriate location upon a session timeout??

Any pointers would be most appreciated.


I suggest you look into forms authentication. It's the "wheel" that you
shouldn't be reinventing.
--
John Saunders
johnwsaundersiii at hotmail
Nov 18 '05 #2
Any specific pointers (web site, references, etc)?

"John Saunders" <jo**************@notcoldmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
"Billy Boone" <b3******@insightbb.com> wrote in message
news:LSbMc.152326$JR4.148104@attbi_s54...
I have a current web application that utilizes a login to authenticate

users
into the application. Once I authenticate them, I store away the user's
name in a Session variable. I then utilize this check to confirm the
session has not timed out (isLogon.asp - which I include on every page).


<snip>
This all assuming using the "get" method on forms - which was fine given

the
limited data being collected on the form.

A new requirements has been given that will require lots of data (well

over
the QueryString limits). So seems I need to go to the "post" method on my forms. However, with this method how do I ensure I return the user to the appropriate location upon a session timeout??

Any pointers would be most appreciated.


I suggest you look into forms authentication. It's the "wheel" that you
shouldn't be reinventing.
--
John Saunders
johnwsaundersiii at hotmail

Nov 18 '05 #3
"Billy Boone" <b3******@insightbb.com> wrote in message
news:QB5Nc.188553$XM6.184798@attbi_s53...
Any specific pointers (web site, references, etc)?

Forms Authentication Provider
(http://msdn.microsoft.com/library/de...-us/cpguide/ht
ml/cpconTheCookieAuthenticationProvider.asp).

In general, MSDN should be your first stop for questions like this.
--
John Saunders
johnwsaundersiii at hotmail

"John Saunders" <jo**************@notcoldmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
"Billy Boone" <b3******@insightbb.com> wrote in message
news:LSbMc.152326$JR4.148104@attbi_s54...
I have a current web application that utilizes a login to authenticate users
into the application. Once I authenticate them, I store away the user's name in a Session variable. I then utilize this check to confirm the
session has not timed out (isLogon.asp - which I include on every
page).

<snip>
This all assuming using the "get" method on forms - which was fine
given the
limited data being collected on the form.

A new requirements has been given that will require lots of data (well

over
the QueryString limits). So seems I need to go to the "post" method

on my forms. However, with this method how do I ensure I return the user to the appropriate location upon a session timeout??

Any pointers would be most appreciated.


I suggest you look into forms authentication. It's the "wheel" that you
shouldn't be reinventing.
--
John Saunders
johnwsaundersiii at hotmail


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Herbert Piljer | last post by:
Wenn ich versuche ein Formular zu versenden bekomme ich als Absender immer Resource.id.#5@mailserver.de. Folgendes Script wird verwendet: <?php include ("syndbopen.php"); $email=...
7
by: Rui Pestana | last post by:
Hello all, I want to use the POST method to submit the form and then grab the parameters in the asp file with request.form("parm"). The problem is that I am using the _search target to open...
0
by: Billy Boone | last post by:
I have a current web application that utilizes a login to authenticate users into the application. Once I authenticate them, I store away the user's name in a Session variable. I then utilize...
0
by: Joeyej | last post by:
Hi - I'm trying to move/use a web form (containing some javascript field checks) previously hosted on a Windows 2000 server. However, the FORM METHOD="post..." command in the form (shown below)...
14
by: Robert S | last post by:
I am trying to use POST to transfer data to another page. When I do this, '.' characters get converted to"_". For example: #index.html: <form action="test.php" method="post"> <input...
2
by: ReGex | last post by:
I have been working on a little project in C# to log into a website (using code inspired/riipped from http://www.codeproject.com/cs/internet/bloglivejournal.asp) but when I request the response,...
25
by: william.hooper | last post by:
here is my form: <html> <head></head> <body> <FORM ACTION="code.php" method="post"> <INPUT TYPE=SUBMIT NAME="arty.jpg" VALUE="Action"> </FORM>
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.