Prolog User Identification

Go To StackoverFlow.com

0

I am creating an API for web with prolog. The user will sign in with their name, and I would like the API to remember the user throughout session until user logs off, or shuts down API. This will of course have to be different for each unique user. My question is how would I write that in prolog as an assert/2, or...?

2012-04-04 20:12
by dangood


2

Use library(http/http_session) to create sessions and access session specific information. See http://www.swi-prolog.org/pldoc/doc/home/vnc/prolog/lib/swipl/library/http/http_session.pl

2013-01-08 17:38
by Jan Wielemaker


0

There is a number of ways to record this information, including:

  • assert/asserta/assertz
  • recorda/recordz

Manual.

2012-04-29 08:43
by Alexander Serebrenik
Ads