Solved

Get an Asp Session variable value from an activeform application

Posted on 2001-07-09
1
217 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

815 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

8 Experts available now in Live!

Get 1:1 Help Now