in reply to Re: Re: Re: session ID
in thread session ID

Yikes! OK - we need some basic information here.

Is this a perl script you are trying to run OUTSIDE OF IIS/ASP, or is this part of an ASP page ?

It will not work outside ASP.

If you are doing this inside ASP, why is the "$sid" variable outside the "<%" ?
Are you trying to do some funky client-side perl-script that gets info from the server ?
If you do not know the answer to the above question, I suspect the answer is NO - in which case your script needs to be all server side, thus:

<% $sid = Request.ServerVariables("HTTP_COOKIE"); %>

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: session ID
by ssr (Initiate) on Oct 07, 2003 at 06:10 UTC
    Thanks very much for our response. My programs are pre-dominantly written in PERL and they run on IIS. I know a strange combination.

    When a client log on to our application (.pl program), if they get through with correct username and password, IIS issues a session id to the client (which can be captured in ASP like you mentioned above in your response earlier) and that is the session id I am trying to capture to be able use to mainatain stateful, session ofcourse with a time limit etc.,

    I read somewhere about http_session_id but I am unable to find more information on it.

    I also heard that it might be retrievable with PERLIIS.DLL. But I am still looking for details on that.

    cgi::session or apache::session would not work for me as I do not want to generate and issue session ids.

    ANY HELP IS GREATLY APPRECIATED!! THANKS!!!!!!
      ssr - you still have not expressed your problem clearly.

      From the info you have provided, I don't see how you intend to use the session id, after you extract it.

      It seems to me that you want to save user logon credentials and attributes. You don't need session ID's for that - just use session variables, such as :

      # Set a session variable # $Session->Contents->SetProperty('Item', 'USERNAME', $userFromForm); # Access the Session USER variable # $user = $Session->Contents->Item('USERNAME');
        Thanks for your reply.

        Here is what I am trying to do:

        When the users logon to my site, I need to capture the sessionID that is issued by my IIS (after validating their username and password) to identify my user's valid session.

        Could not get around to accessing the session id from a .pl script. So I wrote a .asp(vbscript) to capture the sessionid of a browser and a separate .pl program which gets the results of this .asp page.

        But the trick is when I try to capture the results from the .asp page, the session id keeps changing. I need to get the session id that was issued to the .asp script.