?
Solved

Session ID from Delphi CGI

Posted on 2003-03-20
6
Medium Priority
?
358 Views
Last Modified: 2010-04-04
Hello.

We have a CGI written in Delphi. We need to retrive the sessionID from IIS. How can it be done? The application is not using cookies.

Thanks.
0
Comment
Question by:yronnen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 6

Expert Comment

by:MannSoft
ID: 8173761
You application may not use cookies, but that is how IIS stores the session ID in between page views.

And IIS should set the HTTP_COOKIE environment variable before your CGI is called, so you should be able to read and parse it (using GetEnv() I believe).

There may be an easier way but I dont know it off hand.
0
 
LVL 5

Author Comment

by:yronnen
ID: 8174294
Well, we are using the client IP as a session variable...
So that's kind of solves the problem.
0
 
LVL 6

Accepted Solution

by:
MannSoft earned 1000 total points
ID: 8177190
Yeah in that case its just the REMOTE_ADDR environment variable.  But its not guaranteed to be unique between two people...
0
 

Expert Comment

by:CleanupPing
ID: 9316665
yronnen:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question