help using Inets and ESP

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

help using Inets and ESP

Michał Ptaszek
 Hi!
 I have a interesting question....
 I?m developing a web interface in esp to access mnesia running under inets,
 and I would like to have control of the user logged in the system. So I
 need to define session variable to manage the active user in the system.

  So here is my question:
 Anybody knows if Inets supports session variables? (like apache)
 If support, then how i define one?
 if not, anybody know a trick or tip to simulate a session variable looking
 my case? I suppose that someone must need it sometime? any kind of help
 it'll be great!

 thanks in advance...gabriel!




Reply | Threaded
Open this post in threaded view
|

help using Inets and ESP

Samuel Rivas-3

>  Hi!
>  I have a interesting question....
>  I?m developing a web interface in esp to access mnesia running under inets,
>  and I would like to have control of the user logged in the system. So I
>  need to define session variable to manage the active user in the system.
>
>   So here is my question:
>  Anybody knows if Inets supports session variables? (like apache)
>  If support, then how i define one?
>  if not, anybody know a trick or tip to simulate a session variable looking
>  my case? I suppose that someone must need it sometime? any kind of help
>  it'll be great!
>
>  thanks in advance...gabriel!
>

You've to manage the session by yourself, take a look to
http//btt.sourceforge.net, there is a complete example of
an inets application managing user sessions. You could
create the user session with cookies as it's done on
btt and store the user info on an ets table.

Hope it helps.

--
 ---------------------
| Samuel        |
 ---------------------


Reply | Threaded
Open this post in threaded view
|

help using Inets and ESP

Ulf Wiger-4
In reply to this post by Michał Ptaszek
On Tue, 6 May 2003, Erlang Question wrote:

>Anybody knows if Inets supports session variables? (like
>apache) If support, then how i define one? if not, anybody
>know a trick or tip to simulate a session variable looking
>my case? I suppose that someone must need it sometime? any
>kind of help it'll be great!

Two examples of session handling (even if it's not
INETS-based) are the "Cookie sessions" and "Tiny shoping
cart" examples at http://yaws.hyber.org/examples.yaws

/Uffe
--
Ulf Wiger, Senior Specialist,
   / / /   Architecture & Design of Carrier-Class Software
  / / /    Strategic Product & System Management
 / / /     Ericsson AB, Connectivity and Control Nodes