Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
message shown after login "You do not have permission to view this directory or page.",after logout and login it appears but if i hit refresh then it start working. Any solution for this ?, I googled but not find appropriate solution for it, why this message appear
Posted
Updated 2-Jun-15 0:56am
v2
Comments
psima 2-Jun-15 5:41am    
For the first time is it asking for your credentials? & next time is it taking the credentials which is saved by browser for the first time?
Pardeep Rajput 2-Jun-15 6:46am    
when i logout and login again it shown message and when i refresh the page it working fine again. So strange, don't know why this is happening
sharmarun 2-Jun-15 6:22am    
you may need to disable cookies or add clear cache attribute on the header of your login method in code behind.
Please follow this link for clear cache attribute
http://stackoverflow.com/questions/1167890/how-to-programmatically-clear-outputcache-for-controller-action-method
Pardeep Rajput 2-Jun-15 6:55am    
thanks sharmarun but it is not working after clearing cache, i guess its not about the cache clearing, when i hit refresh then it working fine

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900