Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

login

Multiple applications using same login database logging each other out

September 3, 2022 by Magenaut

I’ve set up two ASP.NET applications on a machine, their web.config files contain the same applicationName value in AspNetSqlMembershipProvider item so they share users and roles.

Categories ASP.NET, Q&A Tags asp.net, asp.net-membership, login Leave a comment

Set focus to textbox in ASP.NET Login control on page load

August 29, 2022 by Magenaut

I am trying to set the focus to the user name TextBox which is inside an ASP.NET Login control.

Categories ASP.NET, Q&A Tags asp.net, login, pageload, setfocus Leave a comment

FormsAuthentication Roles without Membership

August 26, 2022 by Magenaut

I’m trying to use FormsAuthentication and it’s working fine at the moment with user name and password. I need to add User Role to the Forms authentication Ticket and i’m not using ASP.NET Membership.

Categories ASP.NET, Q&A Tags asp.net, asp.net-membership, asp.net-mvc, forms-authentication, login Leave a comment

Allow Enter key to login in asp.net?

August 26, 2022 by Magenaut

I have a standard asp:login control:

Categories ASP.NET, Q&A Tags asp.net, c#, enter, login, submit Leave a comment

Determine if user can access the requested page?

August 25, 2022 by Magenaut

I have an ASP.Net website with multiple roles, each with access to a separate directory (i.e. admin users can access /admin, shoppers can access /shop etc), using a shared login page. If someone visits the login page with the return URL set to a directory they do not have access to (e.g. a shopper visits /login.aspx?returnurl=/admin/index.aspx), the user can authentice successfully (the login credentials are valid), but they end up back at the login page (they don’t have access to the page they’ve requested).

Categories ASP.NET, Q&A Tags asp.net, login, security-roles Leave a comment

Get UserID from ASP.Net Login control LoggedIn event

August 25, 2022 by Magenaut

In ASP.Net, I am trying to get the UserId (i.e., the user GUID) of the user that just logged on, in the LoggedIn event of the Login control. That is, I want to grab the UserId before the user is moved to to the next page. This is the code I am using:

Categories ASP.NET, Q&A Tags asp.net, login, userid Leave a comment

How to prevent user from going back to the login-page after successful login using back button

August 25, 2022 by Magenaut

I am working on an MVC3 application and is stuck with a login security issue. The scenario is when a user logs-in with his/her username and password, if correct, he/she will be redirected to their homepage.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, c#, login Leave a comment

How to get the asp.net login control to auto authenticate a previously authenticated user?

August 25, 2022 by Magenaut

I am trying to to set up the login control to remember the login credentials of a user who has previously entered their user name and password successfully. I set the remember me property to true, but it doesnt seem to triger any events where I could read the cookie and auto login the user.

Categories ASP.NET, Q&A Tags asp.net, authentication, controls, cookies, login Leave a comment

wkhtmltopdf Log in to asp.net web app

August 25, 2022 by Magenaut

Having a problem with wkhtmltopdf. I’m using it to take pdf snapshots of pages on a website that has a username/password page. When the .exe runs, I end up with a snapshot of the login page (running the exe from my own ASP.NET app).

Categories ASP.NET, Q&A Tags asp.net, login, wkhtmltopdf Leave a comment

Auto redirect to login after session timeout

August 24, 2022 by Magenaut

I am trying to redirect automatically to my login page after session times out.
I tried to add this code in my Main.Master page (all the other pages are connected to this master page):

Categories ASP.NET, Q&A Tags asp.net, c#, login, redirect, session-timeout Leave a comment
Older posts
Page1 Page2 … Page11 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress