If I have multiple CF8 servers, can a user login on one server, but share the login credential among all servers (no re-login required)?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Maybe question is about sharing session? This can be done using serialized J2EE sessions or using shared client variables.
For example, this can be done in following way.
Create empty database on one of servers (I’ve created MySQL one). Create datasources pointing to this DB on all CF servers. Use this datasource as Server Settings > Client Variables > client sessions storage with name SharedSessions (we’ll use it later).
If we’re using cflogin in Application.cfm on all servers, it’s code can look this (simplified) way:
Now these show the same on both servers:
Sure, there’s much to do here to make process better and more secure, just described the general idea.
Hope this helps.