﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>InstantASP Community Forums / InstantForum.NET 4.x / Modifications / Community Support  / Server.Transfer based on Session variable / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>InstantASP Community Forums</description><link>http://community.instantasp.co.uk/</link><webMaster>sales@instantasp.co.uk</webMaster><lastBuildDate>Fri, 21 Nov 2008 21:33:55 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Server.Transfer based on Session variable</title><link>http://community.instantasp.co.uk/Topic13327-58-1.aspx</link><description>finally got some server side script working but it looks like when I get to my forum site, all my session variables seem to disappear.  does the session get reset if we use different login methods for our main site and the forum?</description><pubDate>Wed, 19 Sep 2007 10:29:34 GMT</pubDate><dc:creator>qmibkim</dc:creator></item><item><title>RE: Server.Transfer based on Session variable</title><link>http://community.instantasp.co.uk/Topic13327-58-1.aspx</link><description>tried the following :&lt;/P&gt;&lt;P&gt;creating a pageload in the default page (didnt work)&lt;/P&gt;&lt;P&gt;creating server side script in the masterpage.aspx and admindefault.aspx (caused exception when run)&lt;/P&gt;&lt;P&gt;tried adding to admindefault pageload (didnt work)&lt;/P&gt;&lt;P&gt;can anyone help me out?  I'm guessing there is something I don't understand about the architecture...</description><pubDate>Tue, 18 Sep 2007 14:04:19 GMT</pubDate><dc:creator>qmibkim</dc:creator></item><item><title>Server.Transfer based on Session variable</title><link>http://community.instantasp.co.uk/Topic13327-58-1.aspx</link><description>I have a site running at &lt;a target="_blank" href="http://www.mysite.com"&gt;www.mysite.com&lt;/A&gt; with the forum at &lt;a target="_blank" href="http://www.mysite.com\forum"&gt;www.mysite.com\forum&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I want to lock out the default forum page until the user is signed in on our main page.  When the user logs in, a session variable is set.   I want to check for this session variable when the forum loads and if its not set properly, I want to redirect the user to the login page on the main site.  &lt;/P&gt;&lt;P&gt;Where would I put this type of code?   Usually I would use a pageload event but I'm unfamiliar with the instantforum code structure.</description><pubDate>Tue, 18 Sep 2007 10:49:50 GMT</pubDate><dc:creator>qmibkim</dc:creator></item></channel></rss>