Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Perl sharing session state with ASP.NET

by digger (Friar)
on Jan 27, 2008 at 00:04 UTC ( [id://664490]=note: print w/replies, xml ) Need Help??


in reply to Perl sharing session state with ASP.NET

Session state is a .Net object. The only way I know of to access .Net objects using Perl is using PerlNET from ActiveState.

To keep from having to rewrite your GUI code in Perl.NET, you could write an interface class that sits between the .Net code and perl, and exposes methods to get Session variables.

Alternatively, if you own the code for the web service, you could just expose the important information via the web service, and use SOAP calls from perl to get what you need. This way you keep the perl and .Net portions completely separate.

HTH,
digger

  • Comment on Re: Perl sharing session state with ASP.NET

Replies are listed 'Best First'.
Re^2: Perl sharing session state with ASP.NET
by Burak (Chaplain) on Jan 27, 2008 at 14:50 UTC
    So, how is this thing stored? In memory? Plain file? RDBMS? Can't we do a low-level access like we do for PHP sessions?
Re^2: Perl sharing session state with ASP.NET
by Anonymous Monk on Jan 27, 2008 at 15:14 UTC
    Hi digger thank you for the response. I indeed own the webservice and I can use the SOAP::Lite to interact it.
    Here is one scenerio I tested:
    Javascript triggers the login webservice, user logs in, then javascript calls a Perl code which triggers another webservice via SOAP::Lite.
    The webservice checks the session to see if the user is logged in, and returns FALSE to Perl. But the user has just logged in!
    The .NET session seems to have an organic connection with the user agent. When I show our CGI::Session to the C# folks, they just stare at the monitor. hehehe...
    BUT when the webservice call checks whether the user has logged in or not via the session, I always get false.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://664490]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2024-04-23 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found