Solved

Get an Asp Session variable value from an activeform application

Posted on 2001-07-09
1
216 Views
Last Modified: 2010-04-06
how can i Get an Asp Session variable value from an   activeform  application,please show me the source
code.
0
Comment
Question by:bluestar
1 Comment
 
LVL 13

Accepted Solution

by:
Epsylon earned 200 total points
ID: 6264962
Embed the object on an ASP page with a parameter named SessionID and as value <%=session.sessionid%>:

<object width="280" height="180" classid="clsid:6098C4FD-B943-40C7-81B0-427AEE5D92B6">
<param name="SessionID" value="<%=session.sessionid%>">
</object>

When a user request this page the session id will be parsed to the ActiveForm. Make sure the classid matches yours.


Now add a read/write property to your ActiveForm named SessionID type Long. The implementation should look like this:

procedure TMyActiveForm.Set_SessionID(Value: Integer);
begin
  Label1.Caption := IntToStr(Value);
end;

function TMyActiveForm.Get_SessionID: Integer;
begin
 // you can leave this empty but this method must be defined
end;
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

932 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now