Strange problem after moving to new hosting provider - admins can't login

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
9/22/2015 2:48:56 PM
Gravatar
Total Posts 9

Strange problem after moving to new hosting provider - admins can't login

I moved a working mojo site from one hosting company to another (FTP'd the files, made database backup's and restored).  The site came right up.  But now, the admin's can't log in.  When they try to log in, the 'Last  Login Date' value in the database is updated, and the "mojoChangeMe" cookie is created, but the "myDomainName.comportalRoles1" cookie is not created.

Can anyone help?

Thanks, Jim

9/23/2015 11:49:44 AM
Gravatar
Total Posts 18444

Re: Strange problem after moving to new hosting provider - admins can't login

What kind of SSL are you using? If it is an SSL proxy server, then it is possible that the web app is not able to detect a secure request.

By default if SSLIsAvailable is true then the role cookie will be marked as a secure cookie which is only passed over secure https requests. But if the web server does not know it is a secure request because of the proxy then maybe it would not send the cookie.

I would try add this to Web.config, if it works after that it would confirm the theory I just mentioned.

<add key="RequireSslForRoleCookie" value="false" />

See also Using an SSL Proxy Server, but be aware that the settings mentioned there require the latest version of mojoPortal

 

You must sign in to post in the forums. This thread is closed to new posts.