473,320 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Test for Cookies

JJ
Hi,
I have an asp script which is posted to by a form.
On the script I need to know if cookies are enabled.

Therefore I need to make the form post to a different script which sets a
cookie and does a response.redirect to the main script.
However, how to I make the request object get forwarded to the second script
with the response.redirect?

You cannot use server.transfer as the test for cookies will not work
properly.
Thanks
JJ
Jul 21 '05 #1
2 1130
http://www.aspfaq.com/2058

--
http://www.aspfaq.com/
(Reverse address to reply.)


"JJ" <nospam> wrote in message
news:41*********************@news.dial.pipex.com.. .
Hi,
I have an asp script which is posted to by a form.
On the script I need to know if cookies are enabled.

Therefore I need to make the form post to a different script which sets a
cookie and does a response.redirect to the main script.
However, how to I make the request object get forwarded to the second script with the response.redirect?

You cannot use server.transfer as the test for cookies will not work
properly.
Thanks
JJ

Jul 21 '05 #2
JJ
Hi,
Thanks, but that does not answer the question.
My question was 'However, how do I make the request object get forwarded to
the second script
with the response.redirect?'

Thanks
JJ
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:uU**************@TK2MSFTNGP12.phx.gbl...
http://www.aspfaq.com/2058

--
http://www.aspfaq.com/
(Reverse address to reply.)


"JJ" <nospam> wrote in message
news:41*********************@news.dial.pipex.com.. .
Hi,
I have an asp script which is posted to by a form.
On the script I need to know if cookies are enabled.

Therefore I need to make the form post to a different script which sets a cookie and does a response.redirect to the main script.
However, how to I make the request object get forwarded to the second

script
with the response.redirect?

You cannot use server.transfer as the test for cookies will not work
properly.
Thanks
JJ


Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: TG | last post by:
How can I test to ensure a visitors browser allows for cookies? When I recently setup my browser to not allow cookies and I visited my website my global and session variables stopped working...
4
by: Brian Burgess | last post by:
Hi all, Anyone know of any special issues with storing cookies with ASP? I'm trying this with two browsers: One is IE 6.0 with cookies set to 'prompt'. This has been working properly as any...
12
by: George Hester | last post by:
I have always used this in ASP to test if the client is accepting cookies: <%@language="VBScript"%> <% Session ("nc") = 1 If Len(Session("nc")) = 0 Then 'Cookies Off Else 'Cookies On End If
3
by: Stephanie Stowe | last post by:
Hi. I read in some helpful publication "If a cookie created by a page on catalog.acme.com sets its path attribute to "/" and its domain attrinute to "acme.com", that cookie is available to all...
2
by: | last post by:
Its strange...I have experimenting with browser hawk by using the cookie sniffer method. However, even If adjust the security slider level in internet options or goto advanced in the privacy tab I...
0
by: Sri. | last post by:
Hi I am trying to figure out how to test whether my browser cookies are enabled. I used the code from the following page...
1
by: Jon Cosby | last post by:
I'm trying to test browsers for cookies. I have my browser set to prompt me to accept cookies. As it is right now, I'm getting through whether I block the cookie or not (no redirect). I'm deleting...
6
by: Stephane | last post by:
Hi, I have a login page where if the user wants his access codes to be saved are set into a cookie. In the logout page, I want to delete those cookies. I tried this and this is not working at...
3
by: Alex | last post by:
Hello. Maybe someone can help me. My development computer has: WindowsXP SP2 and MSSQL Server 2000 and IIS 5.0(or 5.1) Our webserver has: Windows2003 SP1 and MSSQL Server 2005 and IIS 6.0 We are...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.