Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesChrome Persistent Login Vs Other BrowserChrome Persistent Login Vs Other Browser
Previous
 
Next
New Post
4/27/2017 8:14 AM
 

Hello Everybody,

I have a simple login module(custom) nothing special. Beside the username password, you have other methods to login(not the problem).
Problem is specific to Chrome. When I login using normal DNN C# method on chrome, the login persists between browser session, this does not happen on IE, Edge etc.
So this is the method I use 

UserController.UserLogin(this.PortalId, objUser, PortalSettings.PortalName, HttpContext.Current.Request.UserHostAddress, false);

The user is logged in successfully.
Now on Chrome if I close the whole browser and reopen it the user is still logged in. 
On IE if I close the browser and reopen it the user is sent to login page as expected.

Just to repeat this is a simple username password login, objuser is the value returned by UserController.ValidateUser

On my module there is no checkbox for remember me.

Is there any way to force chrome not to automatically log in user once the browser window is closed.

 
New Post
4/28/2017 8:02 AM
 
Are authentication cookies are deleted when you close the Chrome browser ?

Please focus on '.DOTNETNUKE' cookie where DNN user identity persist. There is also cookie named 'authentication' that hold the name of the authentication provider e.g. 'MyCustomAuthType'

Possible this snippet can help you:
if(dnnUser!=null) {
UserController.UserLogin(this.PortalId, dnnUser, this.PortalSettings.PortalName, this.IPAddress, false);
DotNetNuke.Services.Localization.Localization.SetLanguage(dnnUser.Profile.PreferredLocale);
DotNetNuke.Services.Authentication.AuthenticationController.SetAuthenticationType("MyCustomAuthType");
}
 
New Post
5/1/2017 6:41 AM
 

Hi Barry, thanks for taking the time out to help.
Please could you suggest how to delete that .DOTNETNUKE cookie when browser is closed(through C# or JS).
Is there a way of doing this in DNN.

 
New Post
5/1/2017 8:34 AM
 
Is it your browser settings?

http://stackoverflow.com/questions/10...

https://groups.google.com/a/chromium....#!topic/chromium-discuss/jShy5nODrpo

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesChrome Persistent Login Vs Other BrowserChrome Persistent Login Vs Other Browser


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out