473,396 Members | 2,020 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,396 software developers and data experts.

cookie problem

I got several forms on the intranet that require login + some cookie.
I created a central login page with "HTTP_REFERER" so it
redirects the user back to the currect page with a cookie setup.
The redirect works fine, the problem is that the cookie doesn't get set.
If the login is within the same foldre as the form, there is no problem,
but then i can't have a central location for the login.
here is my cookie.

Name = rcset("Firstname")
Response.Cookies("som_userName")=(name)
Response.Cookies("som_userName").Expires = Date + 5

Thanks in adavanced.
Jul 19 '05 #1
3 3108
Check in IIS to see if you have any applications defined on subdirectories
in your site.

Also make sure that you are not accessing the intranet by computername and
the computername has an underscore in it. If it does, cane the person who
named it.

Ray at work

"alexz" <al*****@hotmail.com> wrote in message
news:43**************************@posting.google.c om...
I got several forms on the intranet that require login + some cookie.
I created a central login page with "HTTP_REFERER" so it
redirects the user back to the currect page with a cookie setup.
The redirect works fine, the problem is that the cookie doesn't get set.
If the login is within the same foldre as the form, there is no problem,
but then i can't have a central location for the login.
here is my cookie.

Name = rcset("Firstname")
Response.Cookies("som_userName")=(name)
Response.Cookies("som_userName").Expires = Date + 5

Thanks in adavanced.

Jul 19 '05 #2
Ignore what I said about the application thing. I was thinking of session
variables and what not.

Ray at work

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:uw**************@TK2MSFTNGP11.phx.gbl...
Check in IIS to see if you have any applications defined on subdirectories
in your site.

Also make sure that you are not accessing the intranet by computername and
the computername has an underscore in it. If it does, cane the person who
named it.

Ray at work

"alexz" <al*****@hotmail.com> wrote in message
news:43**************************@posting.google.c om...
I got several forms on the intranet that require login + some cookie.
I created a central login page with "HTTP_REFERER" so it
redirects the user back to the currect page with a cookie setup.
The redirect works fine, the problem is that the cookie doesn't get set.
If the login is within the same foldre as the form, there is no problem,
but then i can't have a central location for the login.
here is my cookie.

Name = rcset("Firstname")
Response.Cookies("som_userName")=(name)
Response.Cookies("som_userName").Expires = Date + 5

Thanks in adavanced.


Jul 19 '05 #3
article here :

http://rtfm.atrax.co.uk/infinitemonk...es/asp/910.asp

explains the reason.


________________________________________
Atrax. MVP, IIS
http://rtfm.atrax.co.uk/

newsflash : Atrax.Richedit 1.0 now released.
http://rtfm.atrax.co.uk/infinitemonk...trax.RichEdit/

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #4

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

Similar topics

18
by: Paul | last post by:
I link to a web site from an Excel spreadsheet. The page i link to is getCookie.asp which sets a cookie then returns back some html which opens a new window, to the same site but a different page...
2
by: Syed Ghayas | last post by:
Hi, I've been having problem writing a cookie. Everything goes ok but when I supply the .Path property to "/" It just write the cookie when there is no cookie present, but when I try to update the...
7
by: Christoph Pieper | last post by:
Hi, we've the following problem : We have an asp-application which sets the cookie on first login. The cookie will never be touched during user access. The user can work the whole day, but...
2
by: marshalli | last post by:
Hi: I have a problem with writing cookie from Jacascript. My problem is that I have two server, one is A, and the other is B. (1) I call a aaa.html from A. In aaa.html : ... <iframe...
3
by: Ben | last post by:
I'm having problems with cookies from asp.net to asp back to asp.net. It seems like I can set a cookie in asp.net fine, and alter it at will, as soon as asp touches it, asp.net won't have...
3
by: Wysiwyg | last post by:
After a server created cookie is processed on the client I want it removed, cleared, or expired in the javascript block but have been unable to do this. If I set a cookie value in the server code...
5
by: Miljana | last post by:
Hi, I have one problem with cookies in ASP.NET application. It seems that I can not retreive cookie from Request.Cookies collection. I put cookie in Response.Cookies collection, and after page...
6
by: kelvlam | last post by:
Hello all, I'm still a bit new with JavaScript, and I hope the guru here can shed some light for me. It's regarding handling cookie and the case-sensitive nature of JavaScript itself. My...
5
by: SJ | last post by:
Hi, In my website, i have a cookie that allows the user to remain logged in for upto 90days. So I'm setting the cookie expiration time to 90 days in the future from the time the user logs in....
29
by: Jerim79 | last post by:
I did try to find the answer to this before posting, so this isn't a knee jerk reaction. What I am trying to accomplish is to have a script that opens a cookie, reads a value, and then use a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.