OutFront Forums
     Home    Register     Search      Help      Login    

Sponsors
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

 

Cookie/Session not working for some people

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Cookie/Session not working for some people
Page: [1]
 
 
hzarabet

 

Posts: 1573
From: New Milford CT USA
Status: offline

 
Cookie/Session not working for some people - 9/27/2009 11:46:09   
Hi all:

Boy! I haven't been here in about 2 years and I didn't recognize the place. I hope Spooky and all are doing well!!! This has always been the most wonderful learning forum

I have a landing page running. If the user goes to the page once he has a cookie set for 1 day stating that he has seen the page so he doesn't have to keep going back to the landing page that day. This is working fine for (what I hope!) are the vast majority of my users (4500 per day). But I occasionally get some emails stating that some people keep getting kicked back to the landing page and never make it to their intended destination. I just spoke to one of these users on the phone. He is using IE7. Privacy set to MEDIUM. Seems fine so far. But he can't get past the landing page. I set up a test page to see if the cookie is being read. It is not. So I tried adding a Session option as a fallback. Where if the Cookie OR the Session is "Y" then he can go further. Still no good! So his PC didn't read the Session either.

OK. Here is the landing page. If you choose the bottom of the 4 options in RED that SHOULD take you to a search page. If someone could click on it and tell me if this is NOT taking you to a seach page that would be helpful.

And here is the ASP Classic code to set the cookie and session:

<%Response.Cookies("SHL_Landing")="YC"%>
<%Response.Cookies("SHL_Landing").Expires=Date()+1%>
<%Session("SHL_Landing")="YS"%>


And here is the code to read the cookie and session:

  <%
  If Request.cookies("SHL_Landing")&""="" OR Session("SHL_Landing")="" then
  Response.redirect "landing.asp"
  ElseIf Request.cookies("SHL_Landing")&""="YC" OR Session("SHL_Landing")="YS" then 
  End if
  %>


Thank you all!

_____________________________

http://www.SigningsHotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada
ou812

 

Posts: 1742
Joined: 1/5/2002
From: San Diego
Status: offline

 
RE: Cookie/Session not working for some people - 9/27/2009 17:27:17   
I didn't really read through your logic/code and just tried the page, following your instructions. It worked for me. I went to the search page, after selecting the red option. On the search page, in the upper left was displayed "YSYC"

I tried it in IE7 with medium privacy and security

_____________________________

-brian

Black Holes suck.

EnterpriseDB: Enterprise-class relational database management system
PostgreSQL: The world's most advanced open source database

(in reply to hzarabet)
Page:   [1]

All Forums >> Web Development >> General Web Development >> Cookie/Session not working for some people
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts