[mapguide-users] User authentication and logout on basic layout

ar_gaeta ar_gaeta at yahoo.it
Tue Oct 5 06:20:59 EDT 2010


Hi all,
I would like to create a first web layout with Anonymous access, and for
this I use the code of the developer's guide, the file named "main.jsp".

>From this WebLayout, I would like to put a button to allow the login for a
user that have credential.
And here starts my problems, because I really don't understand how to do.
I've tried to use the file "mainframe.jsp" (called from "ajaxviewer.jsp")
but I received only errors, and the file is very very complex: I don't know
if there is a possibility to write a more simple code.
So how I can ask to the user their credentials, from a WebLayout loaded as
anonymous user, and subsequently load another WebLayout in conformity with
the user that logged in?


The second task that I would like to achieve, is the possibility for a user
to logout from his actual session, so come back to the first Anonymous web
layout, and do a login with other credentials.
The major problem is that I don't know how to send to mapguide the signal
of: close connection, close site, close session, restart a new session and
new connection with new credentials.

My system:
MapGuide OpenSource 2.1.3 (I have also MGE2011 licensed, but for now I'm
experimenting with MGOS)
Apache2 and Tomcat (so I think that I have to develop all my codes in Java,
isn't it?)
Windows 7

Thanks a lot for your help!

Riccardo


http://osgeo-org.1803224.n2.nabble.com/file/n5602585/mainframe.jsp
mainframe.jsp 
http://osgeo-org.1803224.n2.nabble.com/file/n5602585/main.jsp main.jsp 
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/User-authentication-and-logout-on-basic-layout-tp5602585p5602585.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list