Session Control in PH Web
Joe Boyle
joeboyle_adt at hotmail.com
Tue Aug 7 06:39:04 CDT 2007
you could even try somthing like
idfile_temp = ascii( date ... + ... time ... + ph random... + .txt
if not setsytemval (dict_session_file, idfile_temp ...
rc_temp = " cmd /c echo %random% > " + idfile_temp
run command rc_temp wait
get dict_session_file
----- Original Message -----
From: Joe Boyle
To: 'Han Han' ; powerh-l at lists.sowder.com
Sent: Tuesday, August 07, 2007 12:03 PM
Subject: RE: Session Control in PH Web
You could use the date and time to generate a random number ( on the login page ), then use the three values to write a record to table containing a 'auto increment' column. Now retrieve the record and use the auto increment' column value as the session id. The assumption being that a) date and time generate a different random number for different logins and b) there isn't a PHweb session id.
You could always replace the random number with a value entered by the user if a) isn't the case.
------------------------------------------------------------------------------
From: powerh-l-bounces+atla38=dsl.pipex.com at lists.sowder.com [mailto:powerh-l-bounces+atla38=dsl.pipex.com at lists.sowder.com] On Behalf Of Han Han
Sent: 07 August 2007 03:24
To: powerh-l at lists.sowder.com
Subject: Session Control in PH Web
Hello Guys,
We are developing PH web application. We come across issue on user login security.
Currently we are using Database to create user and their login password.
IN PHP / ASP, there is a syntax call 'session' to capture the value of login session (hidden & encrpyted) and be able to pass from page to page.
Is there any command in PH Web to do the same feature as 'session' ?
PH Web version: 8.41D1 Axiants 4GL 3.4D1
O/S: Windows 2003
Database: MS SQL
Regards,
Kim Han
------------------------------------------------------------------------------
Real people. Real questions. Real answers. Share what you know.
------------------------------------------------------------------------------
--
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l at lists.sowder.com
Subscribe: "subscribe" in message body to powerh-l-request at lists.sowder.com
Unsubscribe: "unsubscribe <password>" in message body to powerh-l-request at lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.
Add 'site:lists.sowder.com powerh-l' to your search terms to search the list archive at Google.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sowder.com/pipermail/powerh-l/attachments/20070807/590e1048/attachment-0001.html
More information about the powerh-l
mailing list