• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Outdoor Ed
#1 Posted : Saturday, October 13, 2007 11:07:40 PM(UTC)
Outdoor Ed

Rank: Member

Joined: 3/4/2006(UTC)
Posts: 121

Following up an a thread from Andy I use Browserhawk on my site to check for Session Cookies. If you have purchased the .NET version from Cyscape on the Default.aspx page add the following:

--Below the <%Page section add

<%@ Import Namespace="cyScape.BrowserHawk" %>

--Right after <asp:Content ID="content1" runat="server" ContentPlaceHolderID="MainContentHolder">

Add this Code


<%
'Browserhawk Session Cookie Test
dim options as ExtendedOptions = new ExtendedOptions()
options.AddProperties("SessionCookies")
Dim extBrow As ExtendedBrowserObj = BrowserObj.GetExtendedBrowser(options)
If extBrow.SessionCookies = False Then
LabelCookieTest.Text = "<hr /> Your Browser does not have Session Cookies Enabled so you cannot proceed with your order. Click the <a href='/help/default.aspx'>Help Link</a> for instructions."
LabelCookieTest.ForeColor = Drawing.Color.Red
Else
LabelCookieTest.Text = "<hr /> Your Browser has Session Cookies Enabled so you can proceed with your order."
LabelCookieTest.ForeColor = Drawing.Color.BlueViolet
End If

%>

-- Then add the <asp:Label code shown below just before the closing div tag of the homepagecolumn2 div tag

<div id="homepagecolumn2">
<uc1:ContentColumnControl ID="ContentColumnControl2" runat="server" ColumnName="System Homepage 2" />

<asp:Label id="LabelCookieTest" runat="server" EnableViewState="False" />

</div>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012