Ask a Question related to ASP.NET Security, Design and Development.
-
Ollie #1
checking whether browser allows cookies in asp.net
Can you check whether a users browser allows you to use cookies?
Cheers
Ollie
Ollie Guest
-
Browser Cookies in Mac
Hello, Im developing an application in Actionscript3 in Flash for Windows, but recently I try to develop the same code in Flash for Mac and the... -
Simulating browser: how can I get server's cookies? (fsockopen)
Hi all, I am developing a script that simulates a browser. So it makes http reqeusts via fsockopen. But I also need the cookies that are sent... -
cookies appearing in browser
Hi! I have a php website that is showing cookies on screen instead of processing them. When I do a 'view source' I get the following: ---... -
checking whether user browser has cookies turned on?
I am developing a web application that make use of the user browser's cookies mechanism. Specifically my application will try to retrieve a... -
Alternatives when user's browser doesn't accept cookies
If you have per user information that you want to store in session and the setting in web.config is set to cookieless=false so you are intending on... -
Jared #2
Re: checking whether browser allows cookies in asp.net
if Request.Browser.Cookies = True
"Ollie" <ollie_riches@hotmail.com> wrote in message
news:ecCfaEZcEHA.3824@TK2MSFTNGP10.phx.gbl...> Can you check whether a users browser allows you to use cookies?
>
> Cheers
>
> Ollie
>
>
Jared Guest
-
WL #3
Re: checking whether browser allows cookies in asp.net
I assumt his test (just like when testing whether JavaScript is supported)
only checks whether the browser used SUPPORTS cookies (although they might
have been disabled by the user) ?
If so: the only real way of testing is by a multistep process sending a
cookie and then trying to read it back.
Wim
"Jared" <VB_Puzzled_VB@email.com> wrote in message
news:10g502m2ea1h3b3@corp.supernews.com...> if Request.Browser.Cookies = True
>
>
>
> "Ollie" <ollie_riches@hotmail.com> wrote in message
> news:ecCfaEZcEHA.3824@TK2MSFTNGP10.phx.gbl...>> > Can you check whether a users browser allows you to use cookies?
> >
> > Cheers
> >
> > Ollie
> >
> >
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
Version: 6.0.726 / Virus Database: 481 - Release Date: 22/07/04
WL Guest
-
Saber #4
Re: checking whether browser allows cookies in asp.net
Sub Page_Load()
If Not Page.IsPostBack Then
If Request.QueryString("AcceptsCookies") Is Nothing Then
Response.Cookies("TestCookie").Value = "ok"
Response.Cookies("TestCookie").Expires = _
DateTime.Now.AddMinutes(1)
Response.Redirect("TestForCookies.aspx?redirect=" & _
Server.UrlEncode(Request.Url.ToString))
Else
labelAcceptsCookies.Text = "Accept cookies = " & _
Request.QueryString("AcceptsCookies")
End If
End If
End Sub
SOURCE: MSDN
© Microsoft Corporation. All rights reserved.
"Ollie" <ollie_riches@hotmail.com> wrote in message
news:ecCfaEZcEHA.3824@TK2MSFTNGP10.phx.gbl...> Can you check whether a users browser allows you to use cookies?
>
> Cheers
>
> Ollie
>
>
Saber Guest



Reply With Quote

