----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: Bharat Message 3 in Discussion No and Yes, Technically no and logically yes. Here is how you achieve this logically. Suppose you have one page (with URL http://localhost/App1/Test_Sess.aspx) where you are generating session variable. Session("TestSession1")="Tested1" Session("TestSession2")="Tested2"....... In stead of this you can write this way... if Session("IsRedirected") ="" Then Session("TestSession1")="Tested1" Session("TestSession2")="Tested2"....... Session("IsRedirected") = "Yes" Response.Redirect("http://localhost/App2/CreateSession.aspx?TestSession1=Tested1&[EMAIL PROTECTED]") End If Here you are redirecting the page to different URL that can be in the same machine or in different machine. In the URL you are passing all the Session values as query string and in CreateSession.aspx page you can read all the values from query string and create a session equivalent at last redirect to your App1 page Test_Sess.aspx, the code would be something like this... Session("TestSession1") = Request("TestSession1") Session("TestSession2") = Request("TestSession2") Response.Redirect("http://localhost/App1/Test_Sess.aspx") Points to consider. 1. Query string has its own limitation, if you are fine than use this method. 2. Because of two round trip between server and client the performance may not be as good as it should be for .NET application. 3. Because of redirect what ever you pass in the query string comes to client, so if you want to secure your session data please do not use it. 4. This method is good, if you generate session in one place and read it in multiple places. Let me know If you have any doubts HTH Thanks, Bharat ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
