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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

response.cookies when submit a form?

Status
Not open for further replies.

welldefined

Programmer
Mar 9, 2006
62
GB
Hi,

When submit a form by click the submit button, can we do response.cookies("xxx")="yyy"?
Perhaps we can assign the cookies by Javascript, but I think that is very complex....

Thank you in advance.
 
not completely sure of what you are doing...but make it a session variable...

session("xxx")="yyy"

then you can access the session("xxx") variable easily...

-DNG
 
Yes, I can use session, but I need to make a cookies or session when click the submit button.
 
My case is:

In a.asp: I got response.cookies("xxx")="a" and a submit button to submit formA to b.asp.
In b.asp: I got response.cookies("xxx")="b" and a submit button to submit formB to c.asp.
After the user moves from a.asp to b.asp and then c.asp by click the buttons, he might click the back button in the IE and goback from c.asp to b.asp to a.asp, then he click the submit button in a.asp and move to b.asp again. This time b.asp will get formA and the cookies("xxx")="b".
I want b.asp always gets formA and the cookies("xxx")="a".
 
then check the previous page using

Request.ServerVariables("HTTP_Referer")

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top