Converting Java-Applet -> .NET-Applet

B

Bernhard Geyer

Hi,

i've trying to convert a Java-Applet, which runs inside a HTML-Page with
Javascript and Sessiong-Management to a .NET-Applet.

The Java-Applet loads in the contend of the Browser-Session data from
the server (Java-Applet is based on java.applet.applet).

I'm trying to reimplement this in .NET (C#), but my problem is the
browser-session. When I try to load data from the server, it doesn't use
the session from the browser.

Is it possible to use the browser-session, when communicate with the server?

Best regards

Bernhard
 
G

Guest

You were'nt clear on what kind of server you are accessing. If it's ASP.Net,
the following may work:

One option is to enable 'cookieless sessions' in ASP.Net (see the
web.config). This forces ASP.Net to put a special tag on the URL of every
request to identify the browser session. You should be able to grab this URL
(it will be in the address box of the browser) and then simply submit the
request to the server with that tag. The server wouldn't know the difference.

If you are using some other server, it may be possible to do the same thing
by configuring the server accordingly.

Sujit D'Mello
 
B

Bernhard Geyer

I don't use ASP.NET. The .NET-Applet must be served from IIS and Apache,
so ASP.NET-Specifica can't be used.

Also adding the Session-Id to the URL isn't the solution that I want.
I think there must be some helper-classes to get the session-id from the
browser and set the connection of the .NET-Applet to the server to this
session.

Best regards

Bernhard Geyer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top