Cookie Won't Persist In IE

(I'm not sure if this is the right forum for my post - my question is about vbscript, but I didn't see any vbscript forum, so here goes.)

I've created a registration page on my website which gets called from a number of links on the site - I want to capture user information before allowing them access to these sections of the site.

Once a user has registered, I want to recognise that fact when they click on any of the other links, so I'm setting a cookie. However, while it works fine in Firefox, it won't persist in IE - even across a single session.

Here's the code I'm using :

In the 'Thank you for registering' page, the very first lines on the page are :

<%
Response.Cookies("Registered") = "True"
Response.Cookies("Registered").Expires = Date + 1000
%>

Where the links that require registration appear on the site, I am building the <a href> tag as follows :
<a href=
<% if Request.Cookies("Registered") = "True" then %>
"PageX.asp"
<% else %>
"Register.asp?RequestedArea=ReportDesign"
<% end if %>
class="bodyLink">Report Design</a>

but it keeps going to the Else part - ie. it's not finding that the Registered cookie has a value of True.

View Replies


ADVERTISEMENT

APS3 / IIS4 Session Wont Persist

Having trouble getting Session to persist. Have checked properties of the Virtual Directory in IIS4 manager and "Enable Session State" is checked, with time out set to 20 Mins. Have also checked the Project Properties in Interdev 6.0 and confirmed that
"Sensionless ASP Pages" is NOT checked.

When moving from one page to another within the application it starts a new session for each page : I've confirmed this both by Writing the SessionID and by adding a Variable into the On_Start of the Global.asa. Only trying to store a single digit in a Session variable.

View Replies View Related

Cookie Don't Persist Aftes Server.transfer

i'm setting up my web new server. i see that cookies do not persist after a Server.Transfer or Response.Redirect although i do expire them the next year.

View Replies View Related

Cookies Don't Persist

I can only get one cookie (which does not persist) from the following asp script:

<script language="vbscript" runat="server">
' cookie_test.asp
' Copyright (c) 2002 by Dr. Herong Yang
' This ASP page displays all the cookies received by the server.
'
response.write("<html><body>")
' Displaying all the cookies
response.write("<b>Cookies received at this time:</b>:<br/>")
set c = request.Cookies
response.write("Cookies.Count = " & c.Count & "<br/>")
for each n in c
response.write( n & " = " & c(n) & "<br/>")
next
response.write("<b>Cookie added by the server:</b><br/>")
n = "Cookie_" & (c.Count+1)
v = "Value_" & (c.Count+1)
response.write( n & " = " & v & "<br/>")
response.cookies(n) = v
response.write("</body></html>")
</script>

Which results in:
Cookies received at this time::
Cookies.Count = 0
Cookie added by the server:
Cookie_1 = Value_1

Changing the Session.Timeout value has no effect.

View Replies View Related

Persist A Recordset

I'm working in a mysql db, and I need to submit a form and persist all the values from an sql search. I tried Code:

add_records.asp?recset=rs

rs being the recordset. Didn't seem to work.

View Replies View Related

Generate Xml Without Need To Persist It In A File?

i get data with ado i need to get a xml string from the recordset how can i get it without having to persist the recordset in a (xml) text file is there a simple way ?

View Replies View Related

Persist Session Info

i have logically divided each .asp page in one or more "states" then i need to store somewhere information about what state has each client on each page i consider 3 ways:

store info in the DB : {page,sessionid} is the PK - in a file: which i have to read on enter to the page and write on exit the page - in the session object: storing an array on a session variable, like session("x")[1...N] each way has a pros and cons, i'm choosing the last method, but i know it consumes much memory.

View Replies View Related

Response.cookie In Session_onstart Event And IE 6.0 Cookie Acceptance

When I set a cookie in global.asa in the sub session_onstart, even if
I have "privacy" in IE 6.X set to "block all cookies" the cookie is
still set, and I can get it on other pages.

I can't find an article that addresses this as a specific issue. Why
does the browser get the cookie when it is set in the session_onstart
event even when I have "block all cookies" set?

View Replies View Related

New Records Wont Add....

i have a working members registration script where members register and it emails confirmation of their registration details to the email address they enter. what i would then like it to do is add them to the users database. I have the code but it chucks up this error when it tries to add the user:

Microsoft OLE DB Provider for ODBC Drivers- Error '80040e10'

[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.

/members/addmember.asp, line 11

Any ideas? Code:

View Replies View Related

IIS Wont Start

I have been running IIS on Windows 2000 for several years with no problem.

Today, when I clicked on the system tray icon and clicked start service, nothing happened - no error messages. IIS just ignored me completely and would not start.

I am about to try a computer restart - but has anyone else run into this problem?

View Replies View Related

IIS Folders Wont Change

Seems that my XP Pro IIS is being a jackass. When I run my ASP scripts it seems to give me this wierd error. Big_Al told me that it was because my script is inside a read-only folder and that something along the lines is really messing it all up.

Now this had brought a new problem. I changed the IIS Console features to Read, Write etc. but its not changing the wwwroot nor the sub folders. Whenever I un select read-only it simply reactivates itself ! What do I do to make the damned thing change!?!?!

View Replies View Related

If Else Statement Wont Work

i have this if endif condition but it doesn't seem to work

if date = "12-06-2007" then
response.write "its december 6"
else
response.write "its not december 6"
end if

and i try this also but its not working either

if day = "6" and month = "December" and year = "2007" then
response.write "its december 6"
else
response.write "its not december 6"
end if

View Replies View Related

Iis 60 Wont Recogniz .asp Pages?

We just upgraded our web servers to ms2003 and iis 6.0. we are also running coldfusion MX7. I get a 404 error when ever I trry to bring up an asp page. On the old server we' re we have both cf and asp pages running w/o issue. Any ideas why I'm getting 404's form my asp pages.

View Replies View Related

Localhost .asp Wont' Show

Running Win XP PRO, IIS 5.1

Ok my computer use to run my website with asp. on it then it all of a suddent stoped working.. the pages

i can still view .htm pages but no more .asp pages. it give me a The page cannot be displayed 500 error...

View Replies View Related

Wont Work On Server

i have made a script and it worls no the local host on my pc but does not work on the server.all of my other asp scripts on the server work any ideas y this would work on the local server and not on the internet?

View Replies View Related

Page 2 - ASP Pages Wont Work On Iis Xp Pro

1 - Yes, Norton Internet Security 2003
2 - NTFS
3 -
Radio button selected = "A directory located on this computer"

Checked = "read", "log visits", "Index this resource"

Execute permissions drop down = "Scripts only"

Application protection drop down = "Medium (Pooled)"

View Replies View Related

.asp Page Wont Display In Browser

I created my .asp page in Microsoft Visual Studio .NET 2003 and when I right-click my page in there it displays perfectly. But when I try to view it in internet explorer I only get the html part to display.

I've tried regestering iis in the cmd, it didnt solve it. Here is the code if it could be to any interest:

View Replies View Related

ASP Site Wont Work On Webserver

Ive build an asp website which works on my local machine and also works when i upload it to other web spaces, but when i upload to one web hosting space - it doesnt (which also happens to be where the client wants it to be).

There are other asp sites running from that location too - which just puzzles me. Would it be something to do with that i use dsn less connections and the other ones use dsn?

View Replies View Related

FLASH MOVIE WONT PLAY

I have been working with ASP classic on this current project im involved in. Well the problem im facing now is there is a page where a flash movie should play in a particular section on the page but it wont play on the secure pages, on the unsecure pages it plays fine. I had added an Active X work in accordance with the Lawsuit issue but it still wont play. Has any body faced this problem.

View Replies View Related

Asp Pg Wont Work With My Javascript Code

I am trying to have multiple layers on a page that toggle on and off, it
works on a htm file but when I use it as an asp file it doesnt show
anything. Code:

View Replies View Related

Data Source Wont Populate - Paraenthesis Issue

I have a couple fields in an Access DB that have parenthesis in the name:

EST(Minutes), EST(Seconds)

When I try and populate the dataset and then bind the datagrid it claims there is no field having that name. Can parenthesis be used in fieldnames. If so, can you please tell me the correct syntax please.

View Replies View Related

Flash Movie Wont Play On A Secure Page

I have been working with ASP classic on this current project im involved in. Well the problem im facing now is there is a page where a flash movie should play in a particular section on the page but it wont play on the secure pages, on the unsecure pages it plays fine. I had added an Active X work in accordance with the Lawsuit issue but it still wont play.

View Replies View Related

Session Cookie Vs. Regular Cookie

I want to know what's the differences between session cookie and regular cookie.

In ASP, when we create cookie, we do the following to identify an user:

Response.Cookies("name") = value

Is this regular cookie? How about session cookie? and when to use which?

View Replies View Related

Asp Page Wont Send Email If Form Fields Are Blank

I created a feedback form for my website that has only 2 required fields. When you submit the form it calls my asp page which puts the information in a database and then sends me n email with the information that was entered into the form. The problem is that the form only has two required fileds, and if the remaining non required fields are left empty when the asp page is called it does write to the data base, but does not send me any email. However if I go back in and put somethng in every field in the form then when I submit the form and my asp page is called it writes to the data base and sends me an email with the all the information I entered in the feedback form. Is there a way to tell my asp page that it is ok to send the email even if the non required fields are left empty? I really do not want to have to go back through the form and put default values in for each area of the form? Also is there a way to have an error displayed if the email is not sent? My asp code is below....

View Replies View Related

How To Set Cookie To Nothing?

The problem is that the code for "change_school.asp" takes the user right to "portal.asp". I checked the code of "change_school.asp" and it does indeed set a cookie value for "school", but for some reason "default.asp" is still finding the old cookie stored and then redirecting...any ideas guys?

'code for change_school.asp...clears the cookie "school" and redirects to page (default.asp) where user can select a new school
<% Response.Cookies("school")= ""
Response.Redirect "default.asp" %>

'code for default.asp which allows user to select a new school, and if the cookie "school" has some value then they are redirected.
<%
If request.cookies("school") <> "" then
Response.Redirect "portal.asp"
end if
%>

View Replies View Related

Cookie And SQL?

On this website i am building it has password protection on certain pages. So i have a "login" portion on the right side of the page, that is shown on every page. When someone logs in is it possible to change that little section to just say Welcome so and so? Instead of having the username and password form with submit button?? Or is this something that requires some java to hide it?

Part II
When someone logs in i want them to recieve a cookie, in that cookie i want it to contain the person's name (wich i want the to be put next to the "welcome back on part I), email address, and up to four other numerical values. (some people will have greater access to sections of the site depending on who they are)

Is is possible to grab this information from the SQL database and put in the cookie? If so can anyone please show me, point me in right direction, ect?

View Replies View Related

Cookie Value

I'm using FrontPage Database results wizards to retrieve data from Access. I have a cookie containing a number I'd like to insert in a custom query. Whenever the page opens, I want the query to run using the value in the cookie. I haven't been able to figure out how to transfer the cookie value into something the FP webbot will accept in the query.

View Replies View Related

Cookie

What i am trying to do is this: I want to make a cookie. If someone comes back to a page (say after an hour after they left)i want them to get a specific popup. If someone comes back after than hour I want them to get a different popup, telling them something different.

View Replies View Related

Cookie Detection

I'm going to go down this route of Cookie detection

<%

If Request.Querystring("Check") = "" Then

Session("cookietest") = "True"

Response.Redirect("cookietest.asp?Check=True")

Else

If Session("cookietest") Then

<!-- Execute code if enabled -->

Else

<!-- Execute code if disabled -->

End If

End If

%>

I’m a little worried, do you know how spiders work with regards to this sort of thing? My site gets some traffic due to it being spidered by the likes of google and I don’t want to loose that flow.

If I use this at the entry point of my site to redirect browsers with cookies turned off to a page telling them to turn them on will that stop the spiders?

View Replies View Related

Cookie Availability

If my user turns cookies off, both permanent and temporary cookies can't be used or only permanent cookies can't be saved on the user's machine?

View Replies View Related

Cookie Not Being Deleted.. How Do I?

I have a cookie with a path of "/"

im trieng to delete it before the expired time has comed anyway i am trieng to delete it by setting the cookie to ""


like so: Response.Cookies("name") = "";

but its not working but...i found out that if i dont set the path it is being deleted but i have to set the path because from some reason without it i have issues where the cookie is not found in some pages.

View Replies View Related

A Cookie Disappears, But Not All Of Them

I have a problem with a Cookie in an ASP page. Without any apparent reason, one of the Cookies disappears, but the others are ok.

I'm at Page1, a link goes to Page2. Page2 redirects to Page3 and Page3 redirects to Page1. When I'm back to Page1, sometime, one of the cookies don't exist anymore... But the others are there! The disappeared Cookie isn't always the same, in the 18 Cookies that I have.

The environment is composed of 4 clustered servers. Page1 is SSL, but not Page2 and Page3.

I don't have more than 4KB (1.86KB to be more precise) of data and I don't have more that 20 Cookies on the same domain.

I added the following code:

View Replies View Related

Sessions Without Cookie

Do you want manage ASP Sessions variables without Session Object and without Cookie?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved