c# - Admins having to reload page to see admin features (question about cookie location) -


I am creating a custom cookie and overloaded the initial class and all the good stuff. My cookie works correctly and I have been able to successfully achieve users, but only after the administrator has signed in to see the administrator, the administrator needs to reload the default page. Once they see a new page on my site and return to the default page, the button is there.

I have read somewhere that the cookie has finally been created and the answer to the HTTP is something to do with TBH, I'm new to this stuff and it did not understand how it works, but I See how this affects my program.

I am currently making my cookie in the page load of my default page. Am I doing this somewhere else, perhaps in the log-in page? I tried, but this problem still exists. Am I missing something?

Thanks for the help and I would be happy to clarify anything.

You can try setting up and redirecting cookies. This is a somewhat standard practice during login, Redirect will cause a fresh page load during which your cookie will be sent to the server.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -