Ask a Question related to ASP.NET General, Design and Development.
-
Chance Hopkins #1
Re: Cookie problem
I like cookies, you can send me some
"Onur Bozkurt" <onur.bozkurt@softhome.net> wrote in message
news:eC9xJP7PDHA.1624@tk2msftngp13.phx.gbl...> Can anyone say what's the problem in the code...? I can't send cookies..
>
> Dim Cook As New HttpCookie("HemenTeknoloji", txtAdSoyad.Text)
>
> Cook.Expires = "01.01.2005"
>
> Cook.Domain = "hementeknoloji.com"
>
> Cook.Name = "HemenTeknoloji"
>
> Cook.Values.Add("MAdSoyad", txtAdSoyad.Text)
>
> Response.AppendCookie(Cook)
>
> Response.Redirect("Default.aspx")
>
>
>
Chance Hopkins Guest
-
Cookie Problem -Please Help
Hello Everyone, I have a little problem. I want to create a cookie and if the user deciced to close the browser, I want that cookie deleted... -
PHP Cookie Problem
Hi guys, I've got a section of my site where I've integrated a rating script. Seems to work okay expect what I've noticed is that with the... -
Cookie and domain problem
hi, guys my website is on server say servera. i have a website on serverb now servera and serverb are on different domians... if serverb... -
problem with cookie
Jose wrote: i may be wrong on this, but i would be surprised if a cookie's key is allowed to have the apostrophe character in it. Check your... -
Problem with IE and Cookie
Hi Friends, I created a cgi program which make use of the cookies to check user authentication. And for creating cookies i make use of... -
Christian #2
Cookie problem
I am having an issue with cookies and a website that uses
both asp and asp.net. When a cookie is created by asp.net
and the value is set by asp.net and the value then changed
by a classic asp page an asp.net page cannot set a new
value for these cookies. No errors are thrown.
The following is how the cookie is initially set in
asp.net as well as it is attempted to be altered.
this.Response.Cookies["Addendum"].Values["ID"] = "0";
any insight would be appreciated.
Christian Guest
-
alexz #3
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.
alexz Guest
-
Ray at #4
Re: cookie problem
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" <alexz33@hotmail.com> wrote in message
news:43d72b53.0309291152.7d578875@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.
Ray at Guest
-
Ray at #5
Re: cookie problem
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:uwc5cUshDHA.3700@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" <alexz33@hotmail.com> wrote in message
> news:43d72b53.0309291152.7d578875@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.
>
Ray at Guest
-
Atrax #6
Re: cookie problem
article here :
[url]http://rtfm.atrax.co.uk/infinitemonkeys/articles/asp/910.asp[/url]
explains the reason.
________________________________________
Atrax. MVP, IIS
[url]http://rtfm.atrax.co.uk/[/url]
newsflash : Atrax.Richedit 1.0 now released.
[url]http://rtfm.atrax.co.uk/infinitemonkeys/components/Atrax.RichEdit/[/url]
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Atrax Guest
-
Maarten #7
Cookie problem
Start [url]http://212.123.5.17/mb/xdata/am.asp[/url]
in the left Frame choose N,F or D (Nederlands, French, Deutsch) Not E
(Standard for English)
Click GO
Close your Browser
Reopen the page. On top you will see the result of the Language Cookie -
result = N,F or D
Start [url]http://www.adq.be/ws.htm[/url]
in the left Frame choose N,F,D (Nedelands, French, Deutsch) Not E (Standard
for English)
Click GO
Close your Browser
Reopen the page. There is no result for the Language Cookie and the standard
(E) is selected
Only difference between the two is that in the second case the first
([url]http://212.123.5.17/mb/xdata/am.asp[/url]) is called in an frame of website on
another domain.
This is the code to write the cookie
Response.Cookies("am")("language")=Request.QuerySt ring("language")
Response.Cookies("am").Expires=date()+30
this code to read
Request.Cookies ("am")("language")
What can be the reason herefore and how o resolve
Thx - Maarten (Belgium)
Maarten Guest
-
Evertjan. #8
Re: Cookie problem
Maarten wrote on 01 mrt 2004 in microsoft.public.inetserver.asp.db:
Already answered elswhere.> Only difference between the two is that in the second case the first
> ([url]http://212.123.5.17/mb/xdata/am.asp[/url]) is called in an frame of website on
> another domain.
Please do not multipost, Maarten.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Evertjan. Guest



Reply With Quote

