InstantASP Community Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Server.Transfer based on Session... Expand / Collapse
Author
Message
Posted 18/09/2007 10:49:50
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 20/09/2007 09:29:07
Posts: 7, Visits: 10
I have a site running at www.mysite.com with the forum at www.mysite.com\forum

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. 

Where would I put this type of code?   Usually I would use a pageload event but I'm unfamiliar with the instantforum code structure.

Post #13327
Posted 18/09/2007 14:04:19
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 20/09/2007 09:29:07
Posts: 7, Visits: 10
tried the following :

creating a pageload in the default page (didnt work)

creating server side script in the masterpage.aspx and admindefault.aspx (caused exception when run)

tried adding to admindefault pageload (didnt work)

can anyone help me out?  I'm guessing there is something I don't understand about the architecture...

Post #13329
Posted 19/09/2007 10:29:34
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 20/09/2007 09:29:07
Posts: 7, Visits: 10
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?
Post #13346
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ryan Healey, Mark Christianson, Bare, James Trott

Permissions Expand / Collapse

All times are GMT, Time now is 7:24am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 10 queries. Compression Disabled.
Home | Products | Purchase | Support | Company | Contact Us
Privacy Statement | © 1999-2007 InstantASP Limited. All Rights Reserved.