This is a discussion on "ASP Cookies" within the Classic ASP section. This forum, and the thread "ASP Cookies are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
ASP Cookies
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
ASP Cookies
Hi im trying to add a cookie to a clients machine but the code i have fails to work why !!
I test it on my machine and no cookie is set even though i accept all cookies during this testing please help and here is the code
Sam Lad |
|
|
|
#2
|
|||
|
|||
|
Try it without the underscore in User_Info... maybe...
|
|
#3
|
|||
|
|||
|
No luck still wont work
|
|
#4
|
|||
|
|||
|
How do you know it isn't working? Have you tried reading it back in, or are you searching for it in your cookies folder?
Try this
|
|
#5
|
|||
|
|||
|
are you testing this local? running IIS or PWS on your machine? Are you using IE6? you may find your browser isnt excepting the cookie. Try viewing it from http://127.0.0.1 instead of http://localhost
|
|
#6
|
|||
|
|||
|
<blockquote id="quote"><font size="1" face="geneva, verdana, arial" id="quote">quote:<hr height="1" noshade id="quote">Originally posted by devman
How do you know it isn't working? Have you tried reading it back in, or are you searching for it in your cookies folder? Try this
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote"> woh woh, slow down their bucko. You aren't suggesting the lump of code is done on one page, are you? Naturally with cookies you need to test it on another page - cookies require a trip back to the user before being able to read them, as cookies are stored on the users machine. So doing that code on one page is not the way of checking that cookies are working. Try disabling cookies in your browser and running that code. Note that it'll still write out 'personz' to the screen. |
|
#7
|
|||
|
|||
|
Maybe I was being a little too quick to jump in - hell i only wanted to help.
I guess what I wanted to know was how he knew it wasn't working, but it seems that señorbadger must have solved his problems as he hasn't been back to say anything else. |
![]() |
| Tags |
| asp, cookies |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] cookies... please help!!!! | earl080688 | PHP Forum | 4 | Jan 14th, 2008 05:51 |
| cookies in PHP | marquey | PHP Forum | 4 | May 31st, 2007 17:17 |
| how to store cookies | selphie08 | Flash & Multimedia Forum | 3 | Sep 20th, 2006 01:54 |
| Flash+cookies | icthecat | Flash & Multimedia Forum | 1 | Oct 31st, 2003 06:32 |