[fpc-pascal] Request redirection + login session in fpweb

leledumbo leledumbo_cool at yahoo.co.id
Thu Mar 29 01:30:48 CEST 2012


I'm currently building a web app using HTTP server application project +
fpweb + tiopf (with sqlite backend). However, I'm stuck in this scenario:

Imagine a user log's in to my web app, which could be done from any page
(it's part of the layout), how can I:
Save login data in session, in case the login is successful, and reuse it in
certain pages requiring login
Redirect the request back to its referer (I could get the referer from
ARequest.Referer)

FYI, I've been able to login simply by using TtiObjectList.FindByProps.

If you need to see current code, it's attached.

http://free-pascal-general.1045716.n5.nabble.com/file/n5602126/tkd1depok.zip
tkd1depok.zip 

--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Request-redirection-login-session-in-fpweb-tp5602126p5602126.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list