Browser Session Variables - Progress Webspeed

xyciana

New Member
Started a new thread in the hope that someone may have the answer. Your previous help was very much appreciated.

I have discovered src/web/method/cgidefs.i but still cannot set browser session variables and retrieve them later.

I have used set-user-field("smecacct",out-account) and
get-user-field("smacacct").

HTML PAGE -> Progress Webspeed (Framed HTML) -> HTML Page in frame 1 (on submit) -> Progress Webspeed in Frame 2 but my get-user-field is empty.

This is all within one browser session. Within the first Progress Webspeed program, I can set and retrieve O.K. but I need to set and retrieve for the whole browser session.

Can anyone advise?

I have an alternative but need a unique identifying tag for the browser session to store the session in a database. Does anyone know what session variable would give me the unique identifying tag for a browser session? I cannot use SERVER_ADDR or SERVER_PORT because several people use the same PC. Also a cookie has its own security risk. Someone must have done this somewhere :).


Please refer to this in Java teminology -> http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSession.html

An simple example would me very much appreciated.
 
You can use the "State-aware" mode in WebSpeed ... see the manual for details.
In state-aware you can keep all your progress session variables.
My opinion is to use a "cookie" instead, on the browser side, and the mode "stateless" ...
Anyway ... a web-driven application is not
a "client-server" application. You have to adapt your application GUI and the user interaction to this situation GET-POST-GET-POST is an asyncron communication ... and NOT a on-line communication.
In a client server application you can have 30-50 connected users ... but in a "internet" application you can have much more .... I don't know if you can handle in a same time 500-20000 database connections.

rares
 
Back
Top