| | |
Set cookie by typing url
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Dec 2007
Posts: 9
Reputation:
Solved Threads: 0
Hi i would like to know how can we set the cookie by just typing url for example, www.test.com/default.asp?field1=mark&name=john so when the user type in the url above, the two cookies will be set, which is field and name with the value mark and john. any replies, i'd appreciate. thanks
•
•
Join Date: Jan 2008
Posts: 35
Reputation:
Solved Threads: 5
Loops through all of the QueryString variables and sets a cookie for each one.
~ mellamokb
ASP Syntax (Toggle Plain Text)
For Each strKey in Request.QueryString Response.Cookies(strKey) = Request.QueryString(strKey) Next
~ mellamokb
![]() |
Similar Threads
- May have Virus/Spyware/Aliens? or IE Hijacked (Viruses, Spyware and other Nasties)
Other Threads in the ASP Forum
- Previous Thread: I need examples of website admin pages in asp
- Next Thread: ASP:which database
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection calendar changeable connection current database databaseconnection diagnostics dreamweaver excel fso html iis microsoft msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption server single specfic sqlserver sqlserverconnection toolkit web webserver windows7





