SSL Enabled
How can tell at run time is the web site is SSL enabled. What I want to do is redirect to an https url if both of the following conditions are met.
1) the request is not already https (Request.IsSecureConnection=false)
2) the site is SSL enabled. (ie: Certificate installed) ?
I don't want to redirect to https is no SSL is present.
View Replies
I would like to kinda have things happen if javascript is enabled
in the browser, or if it isn't then do some other things. For example,
if I know javascript is enabled, I could bring a popup window, etc. but
if it isn't, then I could just provide a link instead.
View Replies
View Related
I never really use cookies but I need to make sure that browsers have cookies enabled for cookies and ASP session variables. There are not javascript cookies only. I'm using the following code but it's just not working out. Even if cookies are cleared and off in my browser, it still registers that the cookie I attempt to set is successful. With cookies disabled I expect that no cookies should be set. It seems like it might even be set just for the life of the Sub but I can't really tell.
Anyone have a good way to do this or know how to modify mine?
Code:
Sub checkCookiesOn
Response.Cookies("ASPLPCookieCheck") = "True"
If Request.Cookies("ASPLPCookieCheck") <> "True" Then
Response.Redirect("/error.asp?error=cookies")
Else
'Request.Cookies.Remove("ASPLPCookieCheck")
Response.Cookies("ASPLPCookieCheck").Expires= #September 12,2000#
End If
End Sub
View Replies
View Related
It is possible to check via ASP whether cookies are enabled for a person's web browser and based on this check send him to another page which does not support cookies (ie login?)?
View Replies
View Related
I searched around everywhere on the net, but could not find a simple example
of detecting if cookies are enabled - on server side, and without moving
from one page to another.
This should be a very basic functionality, so I am reluctant to believe that
there's no way to simply test it in a server-side script.
View Replies
View Related
if a browser is javascript enabled with vb code. If javascript is not enabled I would like to redirect the page to somepage.asp.
View Replies
View Related
I know that with server variables you can detect browser setting. How do I find out if a popupblocking is enabled?
View Replies
View Related
I found some example on web, but most of them are need 2 pages by using redirect method. Is there code for do this only in one page?
View Replies
View Related
I am writing an application in ASP which needs to decide at server side while the ASP code is executing whether the cookie is enabled/disabled at the client browser or not.
I do got the code which runs accurately when the IP Address is given of the server. It does not work when I access the web server(local development server) by it's name.
Please note that the code below sometimes does not work even when the IP Address was given to access the web site.
The code snippet is as under:-
View Replies
View Related