Central user & security for different sites and platforms

Hi,
I’m a newbie in Scriptcase.
To be honest, newbie in web development as well :slight_smile:
I need some suggestions from experienced developers.
I’m planning to use a central database for storing the user credentials and session data etc.
My purpose is centralizing the user / application security with single sign on.
Because I’m also planning to use different technologies like ASP.net, Java etc. for other applications (probably with different domains).

Can anyone point me to the right direction please ?
Thanks in advance…

Cemo

Re: Central user & security for different sites and platforms

First you need to now all the technologies you are going to use, to study the integration. php(server side), with asp.net(you’ll need a windows server running IIS) and Java(tomcat?).

You can integrate storing the session in the database(instead in a file), cause the session is a cookie number stored in the browser.
Or you can store the login in the cookies directly. Or if you’re going to use Active Directory you can use LDAP to valide the windows login …

So … i think you need to plain more what are you going to do, the technologies, how to integrate …

Re: Central user & security for different sites and platforms

Thanks for your prompt reply.
I just need to know the basic idea behind “using database for session”.
Shall I use a random unique session ID in the db, and then use this for other sites’ login ?
When should I end the session, delete from table etc…
I’ll be glad if you can help a little bit more.

regards…

Re: Central user & security for different sites and platforms

The main ideia is tu use php session. When you start a php session(scriptcase applications already starts the session) then you have an unique session id.

you can recovery the session id using session_id() : http://br2.php.net/session_id

then store this session id on a cookie(browser) and then all your system that are using the same browser just need to get the session in from the cookies and can access the database to recovery what you want … for example :-p

Re: Central user & security for different sites and platforms

I think the idea is getting clear for me.
Thank you very much.

Cemo