Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: reset button


Message #1 by "sage" <sagejoske@h...> on Fri, 4 Oct 2002 03:42:27
hi,

how do you clear session variables when a reset button is pressed?

can you do this?

thanks

S  
Message #2 by "Ken Schaefer" <ken@a...> on Fri, 4 Oct 2002 13:10:10 +1000
You can't - session variables are stored in the server's memory. You'll need
to issue a new request to the server.

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "sage" <sagejoske@h...>
Subject: [asp_web_howto] reset button


: how do you clear session variables when a reset button is pressed?
:
: can you do this?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Message #3 by "sage" <sagejoske@h...> on Fri, 4 Oct 2002 04:32:01
> You can't - session variables are stored in the server's memory. You'll 
need
to issue a new request to the server.

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "sage" <sagejoske@h...>
Subject: [asp_web_howto] reset button


: how do you clear session variables when a reset button is pressed?
:
: can you do this?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Message #4 by "sage" <sagejoske@h...> on Fri, 4 Oct 2002 04:33:19
thanks... 
> You can't - session variables are stored in the server's memory. You'll 
need
to issue a new request to the server.

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "sage" <sagejoske@h...>
Subject: [asp_web_howto] reset button


: how do you clear session variables when a reset button is pressed?
:
: can you do this?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Message #5 by Lauralyn.Ninow@c... on Fri, 4 Oct 2002 10:40:00 -0500
Can't you create a button called cmdRemoveAll and call the following to
clear session variables??

If Len(Request.Form("cmdRemoveAll")) Then
   Session.Contents.RemoveAll
End If

LN

> -----Original Message-----
> From: sage [mailto:sagejoske@h...]
> Sent: Thursday, October 03, 2002 11:33 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Re: reset button
> 
> 
> thanks... 
> > You can't - session variables are stored in the server's 
> memory. You'll 
> need
> to issue a new request to the server.
> 
> Cheers
> Ken
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> From: "sage" <sagejoske@h...>
> Subject: [asp_web_howto] reset button
> 
> 
> : how do you clear session variables when a reset button is pressed?
> :
> : can you do this?
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> 
> ---
> 
> Improve your web design skills with these new books from Glasshaus.
> 
> Usable Web Menus
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/th
eprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20

Message #6 by propellerhead@b... on Thu, 10 Oct 2002 10:20:33
or you could try;

<%If request.form("Reset") = "Reset" then
	Session("variable") = Null
%>

good luck!

 

> Can't you create a button called cmdRemoveAll and call the following to
clear session variables??

If Len(Request.Form("cmdRemoveAll")) Then
   Session.Contents.RemoveAll
End If

LN

> -----Original Message-----
> From: sage [mailto:sagejoske@h...]
> Sent: Thursday, October 03, 2002 11:33 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Re: reset button
> 
> 
> thanks... 
> > You can't - session variables are stored in the server's 
> memory. You'll 
> need
> to issue a new request to the server.
> 
> Cheers
> Ken
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> From: "sage" <sagejoske@h...>
> Subject: [asp_web_howto] reset button
> 
> 
> : how do you clear session variables when a reset button is pressed?
> :
> : can you do this?
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> 
> ---
> 
> Improve your web design skills with these new books from Glasshaus.
> 
> Usable Web Menus
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/th
eprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20


  Return to Index