Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 5th, 2006, 09:45 PM
Registered User
 
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default redirecting users

Hi I need help in doing a portion of one of my project:

I would liek to know if someone could help me out with the code to do the following function

depending on the account number to redirect a user to a different version of a site. I am utilizing a cookie for different domains. The basic function should logoff the user from one site redirect them to correct version of the site, log them in automatically. can someone help with either the code (vbscript or javascript woudl be good)..thanx

 
Old October 5th, 2006, 10:32 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Personally what you should do is when a user comes to your site, and goes to login you grab their login information and write your logic to determine which site they need to be at redirect them to that site and log them in automatically.

This prevents you from logging people on and off.

Your psedocode is something like this:

User Logs in
Grab Data from the database (ID)
If id = n redirect to site else
elseif id = n2 redirect to site b
Pass ID along with redirect
Once at site A or B have the ID go to the database grab the necessary information
Update cookie

Essentially this is all transparent to the user.
hth


--Stole this from a moderator

I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirecting Users anshul Pro PHP 1 April 3rd, 2004 04:31 PM
Redirecting logged on Users fletched PHP How-To 1 March 25th, 2004 06:42 PM
Help with redirecting users Sach Classic ASP Databases 1 January 16th, 2004 12:29 PM
Redirecting logged in users zicaden Beginning PHP 3 September 6th, 2003 02:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.