Session variables are stored on your server that wont work when you enter other server 
it cannot see you server session variables.You will have to use a clientside cookie to 
pass your username and password or sometype of variable that will trick the other 
server into thinking your client is already loggrd in. I am not sure how to set this 
up but mabe it will help you figure it out.
  ----- Original Message ----- 
  From: minglemehta38 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, September 30, 2004 8:56 AM
  Subject: [AspClassicAnyQuestionIsOk] Re: Help Needed ..Urgent !!!


  I guess My question is not well understood. Let me explain in other 
  words.

  User logs in our Website, and I store his Username  & Password Info 
  using Session variables. Now, on clicking one of the Links he has to 
  be redirected to one of our Client's Website. This Client's Website 
  requires a DIFFERENT Username and Password to enter and is on 
  completely different Server than ours and we have abs no control 
  over it.  But since User's have logged in our Site , that DIFFERENT 
  Username & Password required to access our Client's Website 
  shouldn't be asked to them.

  HOWEVER, that info needs to be fed to enter their Site.
  As of now I am able to feed in UserName & Password using xml htttp 
  Object but unable to Redirect to that Client's Page ...
  Here is the COde I have written ----------

  ------------------------Serverpost.asp-----------------------------

  <HTML>
  <HEAD>
  <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
  <TITLE></TITLE>
  </HEAD>
  <BODY>
  <P><[EMAIL PROTECTED]></P>

  <P><BR>
  <%
  Response.Buffer = true
  Dim sLink, xmlHttp
  Dim retStr, strOpen

  ' Url to which we need to redirect
  sLink = "http://www.-------.com/_____ .html"

  on error resume next
  set xmlHttp = Server.CreateObject("Msxml2.ServerXMLHTTP.4.0") 

    xmlHttp.open "GET", sLink, false, username,password
    xmlHttp.send 

  If Err.Number = 0 Then      'if no error occurred
     retStr = xmlHttp.responseText 'wait for receive response from 
  server
  Else
     retStr = "URL Not Found"    'error message
  End If
    
    Set xmlHttp = nothing      'free the object
    
  Response.Write(retStr)
    
  %>

  </BODY>
  </HTML>

  ---------------------------------------------------------------------
  ------------

  EXPECTED : THE Page should be redirected to sLink by feeding 
  Username & Passowrd.
  CURRENTLY : I am able to feed the information and able to retrieve 
  just the ResponseText ie HTML Body of the target page but unable to 
  redirect to that Page.
  As in my Target Body is getting pasted in Serverpost.asp only ....

  I hope the question is understood. Its NOT ABT how I should store 
  Our Users Login Info when he Log's In.



  --- In [EMAIL PROTECTED], GHULAM QADIR 
  <[EMAIL PROTECTED]> wrote:
  > hi
  > 
  > usd = request.form("userid")
  > pwd = request.form("password")
  > 
  >  session("a")=usd
  >  session("b")=pwd
  > 
  > your session veriable ready .
  > 
  > if you next page sedn request 
  > 
  > 
  > response.redirect("next.asp");
  > 
  > ---------
  > next.asp
  > --------
  > 
  > if sesion("a") is null and session("b") is null  then
  > response.redirect("login.asp");
  > else
  > 
  > response.redirect("shopping_page.asp");
  > 
  > end if
  > 
  > 
  > 
  > if any questuin [EMAIL PROTECTED] on chat i am
  > averiable.
  >  
  > 
  > 
  > > hi dear
  > > you can use session variable.
  > > when user login in ur web site store user name and
  > > password in session varible ,then u redirect the
  > > user
  > > to another website 
  > > --- minglemehta38 <[EMAIL PROTECTED]> wrote:
  > > 
  > > > I need to redirect the User who is logged in our
  > > > Site to another
  > > > WebSite. But that Web-Page asks for USERNAME and
  > > > Password. SInce the
  > > > Users have Logged into Our Site , they should be
  > > > able to directly
  > > > Get to other Page without Logging In.
  > > > 
  > > > I was able to Login to that other Page by
  > > supplying
  > > > USERNAME &
  > > > PASSWORD via an XML HTTP Object, but unable to
  > > > redirect to that
  > > > Page.
  > > > 
  > > > As in I am Just able to fetch the ResponseText of
  > > > the URL but not
  > > > able to Redirect to that URL.
  > > > 
  > > > Any Suggestion ??
  > > > 
  > > > 
  > > > 
  > > 
  > > 
  > > 
  > >             
  > > _______________________________
  > > Do you Yahoo!?
  > > Declare Yourself - Register online to vote today!
  > > http://vote.yahoo.com
  > > 
  > 
  > 
  > 
  >             
  > __________________________________
  > Do you Yahoo!?
  > Yahoo! Mail Address AutoComplete - You start. We finish.
  > http://promotions.yahoo.com/new_mail


        Yahoo! Groups Sponsor 
              ADVERTISEMENT
             
       
       


------------------------------------------------------------------------------
  Yahoo! Groups Links

    a.. To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
      
    b.. To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]
      
    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to