473,395 Members | 1,335 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Using FormsAuthentication how do I find out if the user is logged in?

Hello,

I have a web site where I have a secure folder. I use formsAuthentication
to secure the folder and it works fine, but I would like to change my menu
based on they have logged in and now have access to more info. I am using
master pages. I would like to know if they are logged in or not.

Thanks in advance for any help,

Jack
Oct 15 '06 #1
2 2991
to check programmaticly:
HttpContext.Current.User.Identity.IsAuthenticated
"Jack" <jo***@webfoxmail.comwrote in message
news:e1*************@TK2MSFTNGP03.phx.gbl...
Hello,

I have a web site where I have a secure folder. I use formsAuthentication
to secure the folder and it works fine, but I would like to change my menu
based on they have logged in and now have access to more info. I am using
master pages. I would like to know if they are logged in or not.

Thanks in advance for any help,

Jack

Oct 15 '06 #2
Thanks you very much!!!

Jack

"Mischa Kroon" <ww*@bloggingabout.netwrote in message
news:19***************************@news.chello.nl. ..
to check programmaticly:
HttpContext.Current.User.Identity.IsAuthenticated
"Jack" <jo***@webfoxmail.comwrote in message
news:e1*************@TK2MSFTNGP03.phx.gbl...
>Hello,

I have a web site where I have a secure folder. I use
formsAuthentication to secure the folder and it works fine, but I would
like to change my menu based on they have logged in and now have access
to more info. I am using master pages. I would like to know if they are
logged in or not.

Thanks in advance for any help,

Jack


Oct 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: G-Fit | last post by:
Hello group, I use Forms Authentication in my web application and I am not sure I understand the way the cookie works. I use the SetAuthCookie method with a database identifier as userName, as...
2
by: George Durzi | last post by:
When you call FormsAuthentication.SignOut(), is the FormsAuthentication cookie supposed to be destroyed automatically? I'm creating my FormsAuthentication cookie by doing: HttpCookie oCookie =...
0
by: Ed West | last post by:
Hello This SignOut code is not working, people are still logged in after it redirects to default.aspx. any ideas? Thanks. public class logout : System.Web.UI.Page { private void...
2
by: Ben Fidge | last post by:
Is FormsAuthentication.RedirectFromLoginPage the only way to populate the HttpContext.Current.User.Identity.Name property? A base class for each page contains the follwoing property: public...
3
by: David | last post by:
Hi all, I am having a slight issue with FormsAuthentication. I need to authenticate a user and while the page is still being processed, need to work with that authenticated user. I have set up...
5
by: Åženol Akbulak | last post by:
Hello; I use in my web application FormsAuthentication. Also I use Session state (InProc). When a user logged in, I can read Session parameters. (For example Session). Problem is that, when...
2
by: Jules | last post by:
When creating this website I user a custom authentication method to validate the usercredentials (I think the membership provider is an overkill since I only use the authentication part). When I...
2
by: rn5a | last post by:
A web.config file has the following code: <configuration> <system.web> <authentication mode="Forms"> <forms name="NETConnectCookie" loginUrl="Login.aspx"> <credentials passwordFormat="SHA1"/>...
0
by: rn5a | last post by:
This is how I am using the GetAuthCookie using the FormsAuthentication object: 'after successful login Dim hCookie As HttpCookie FormsAuthentication.RedirectFromLoginPage(txtUserName.Text,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.