|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Dear Members,
a very small problem, below is the code that i have in my process.asp page. before this page i have 1 login page in which there r 4 fields: login name, password, domain & company when i press submit button it takes me to process.asp page which creates cookies in the below mentioned way, now the problem is when i print the cookies on same page ie process.asp it shows but when i pass the same cookies to passcookie.asp page no data is printed. plz advice wat cud b the actual prob as sometimes bk i was using the same thing in another application n it was working fine name=ucase(request.form("name")) domain=request.form("domain") comp=request.form("comp") pass=ucase(request.form("pass")) response.cookies("user")("name")=name response.cookies("user")("domain")=domain response.cookies("user")("comp")=comp response.cookies("user")("pass")=pass name=request.cookies("user")("name") domain=request.cookies("user")("domain") comp=request.cookies("user")("comp") pass=request.cookies("user")("pass") response.write name response.write domain response.write comp response.write pass response.redirect "passcookie.asp" regards Sumeet
__________________
the coolest one |
|
#2
|
||||
|
||||
|
You can't assign data to the response buffer, then use a redirect afterwards. You are mixing header information, which is not possible. Instead, use a client side redirect. (i.e. Javascript)
|
|
#3
|
|||
|
|||
|
Dear Stumpy,
i applied the window.location.replace('passcookie.asp') method of javascript, but still the page is redirecting but cookies are still not comin to thispage. any idea wat cud b the prob rgds Sumeet |
|
#4
|
||||
|
||||
|
Try removing the request.cookies code from the code above. Both reading and writing to cookies in one page is not recommended, do one or the other.
|
|
#5
|
|||
|
|||
|
tried that too, still the same results cookies r still not transferred to required page
( |
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > Cookies Problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|