Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP 3.0 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 November 26th, 2007, 06:30 PM
Registered User
 
Join Date: Nov 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Pass session variables from one website to another

My company has 2 websites. Each is a porthole site where a user logs in and a session variable is set to track their rights.

It has recently become necessary that users have the ability to jump from site A to site B, and vice versa, via a link.

My issue is that the session variables are not following the user from one site to the other.

[u]Is it possible to have session variables follow the user from site A to site B, and vice versa? If so, how?</u>
Thank you for your help.
C-

BTW - my current workaround is to pass the variable via a request string. This is fine for the short term but is highly inefficient for the long haul.
 
Old November 27th, 2007, 10:53 AM
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

Session variables can not be passed between domains. So you will have to use the query string or use a database to presist the values.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor :.
Wrox Books 24 x 7
================================================== =========
 
Old November 27th, 2007, 11:13 AM
Registered User
 
Join Date: Nov 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That's what I suspected. Thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I Pass Session Variables cdanczak Classic ASP Professional 0 November 27th, 2007 10:42 AM
HOW TO PASS A VALUE FROM WEBPAGE TO OTHER WEBSITE pareenvatani ASP.NET 1.0 and 1.1 Basics 8 November 26th, 2007 02:56 PM
PASS VALUES FROM MY WEBPAGE TO A WEBSITE pareenvatani ASP.NET 1.0 and 1.1 Professional 1 November 13th, 2007 10:20 AM
I can't pass variables by session (p.47) rjm BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 11 December 31st, 2006 06:06 PM





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