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!

See if cookies are off

Status
Not open for further replies.

oakgrove

Programmer
Sep 22, 2002
51
US
Was searching for a tip on how to find if a user had cookies turned off because our client's upload page needs them on to allow us to set session variables. If they have them off I needed to insert a message saying they could not proceed.

Did find some other useful explaination of the relationship betweeen session variables and cookies and 'Why' cookies need to be on.

At any rate here's how I decide when to put up the message:
<%
if request.ServerVariables(&quot;HTTP_COOKIE&quot;)=&quot;&quot; then
response.write(&quot;<Br><B><font color=FF0000>Your Browser must allow us to place a temporary cookie on your computer if you want to continue with your submission</font></b><br>&quot;)
end if
%>


 
here's a link to a javascript that will do it for ya'

hth
mb
&quot;Where's the Ka-Boom? There's supposed to be an Earth-shattering Ka-Boom!&quot;
Marvin the Martian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top