Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session ends when page loads

Status
Not open for further replies.

mayamanako

Technical User
Aug 31, 2005
113
GB
hi guys how do you expire a session in asp when the page loads?

i want it to have this feature so that users can not login anymore when they click "back" button.

thnx for any ideas.
 
something like this:


%>
hold_usr=session("usr")
hold_psw=session("psw")
%>

<script>
function SubmitOK()
{
var bOK = true;

var usr = document.frm1.usr.value;
var psw = document.frm1.psw.value;User:
<input type='text' name='usr' id='usr' size='20' value='<%=hold_usr%>' /> &nbsp;&nbsp;&nbsp;

Password: <input type='password' name='psw' id='psw' size='20' value='<%=hold_psw%>' />
 
thanks wvdba, i will look into that.

have a nice day!
 
session.abandon()

clears all session variables, although every ASP page they hit will generate a new session.sessionID if one doesn't exist

[thumbsup2]DreX
aKa - Robert
if all else fails, light it on fire and do the happy dance!
" I always think outside the 'box', because I'm never in the 'loop' " - DreX 2005
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top