Access Denied when click a page after leaves the computer al
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Access Denied when click a page after leaves the computer al

 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server
Author Message
Jack
Guest





Posted: Mon Nov 07, 2005 8:05 am    Post subject: Access Denied when click a page after leaves the computer al Reply with quote

To whom may concern:
Condtions:
1. Use custom security, so I add cms login with domain admin user in In
Application_BeginRequest event in Global.ascx.cs
Set Authentication for cms user:

CmsAuthenticationTicket ticket =
CmsFormsAuthentication.AuthenticateAsUser( domainUser, password );
CmsFormsAuthentication.SetAuthCookie(ticket,true,false);
The domainuser is Domain Admin user.

2. In site manager,
I added a Right Group in subscribers, for Domain Guest, allow to access
all resouces, templates, channels.
How can I assign Interent Guest in subscribers?

3. In web.config
I set:
<authentication mode="None"/>


Meet problems:
1. When user opens a web page in a MCMS web project, then leave the
computer alone, after some while, when user click link or button in the
page, "Access Denied" error occurs.

Thanks in advance!
Jack
2005-11-07
Back to top
Stefan [MSFT]
Guest





Posted: Mon Nov 07, 2005 5:50 pm    Post subject: Re: Access Denied when click a page after leaves the compute Reply with quote

Hi Jack,

that makes sense: you did not enable any authentication in your code.
You should better do the following:

- enable forms authentication.
- implement a login page that does the authentication (can also be done in
the page load event in an automated manner to simulate your begin request
method)

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------


"Jack" <lsfyfan@gmail.com> wrote in message
news:1131329124.727024.241540@z14g2000cwz.googlegroups.com...
Quote:
To whom may concern:
Condtions:
1. Use custom security, so I add cms login with domain admin user in In
Application_BeginRequest event in Global.ascx.cs
Set Authentication for cms user:

CmsAuthenticationTicket ticket =
CmsFormsAuthentication.AuthenticateAsUser( domainUser, password );
CmsFormsAuthentication.SetAuthCookie(ticket,true,false);
The domainuser is Domain Admin user.

2. In site manager,
I added a Right Group in subscribers, for Domain Guest, allow to access
all resouces, templates, channels.
How can I assign Interent Guest in subscribers?

3. In web.config
I set:
authentication mode="None"/


Meet problems:
1. When user opens a web page in a MCMS web project, then leave the
computer alone, after some while, when user click link or button in the
page, "Access Denied" error occurs.

Thanks in advance!
Jack
2005-11-07
Back to top
Jack
Guest





Posted: Tue Nov 08, 2005 9:51 am    Post subject: Re: Access Denied when click a page after leaves the compute Reply with quote

Yes, that works fine,
thanks.
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB