Re: Question

From: ksayal (ksayal_at_discussions.microsoft.com)
Date: 06/22/04


Date: Tue, 22 Jun 2004 08:42:01 -0700

Steve,

I liked your idea, but there's one problem. Since we are using CMS 2002, to save our content, we are showing some top news stories in the index page(just the title and brief description). The login part comes in when the user wants to read the article(the articles are stored in the topnews folder). If he's a subscriber(cookie set for him), he can read the article else he's redirected to the login page. Once he logs in, he should be redirected to that article.

Is it possible, with the way you are guiding me??
 
Kulwinder

"Steven Spits" wrote:

> "ksayal" wrote:
>
> > Our site is a newspaper site. Only subscribed users can view the top 10
> > articles. These top ten articles are shown on the index page with a little
> > description. When a user clicks the article, the page first looks for the
> > cookie if a cookie is set then it redirects to the story page
> (supposedly).
> >
> > My problem is it checks for the cookie, reads the cookie but when it has
> to
> > redirect, i don't know what server variable to use. If i use
> > ("SCRIPT_NAME"), it brings to the topnewss.aspx page whereas this page is
> > holding the stories postings. However i want it to redirect to
> > /nr/exeres/GUID.htm page. Any ideas how i can i do that???
>
> There a many ways to do this. Server variables are not the clue to this
> problem (at all).
>
> I suppose the user has to login first? To identify himself as a "subscribed
> user"? If so, why not go for the 100% ASP.NET way?
>
> Put all the protected pages in a directory and deny anonymous access for
> that directory in your web.config (see MSDN for help, seach for <deny
> users="?">). Next enable Forms authentication (see <authentication
> mode="Forms">), also in your web.config.
>
> The cool part is that ASP.NET manages authentication now. If the user clicks
> on one of those articles, he is tranferred to the page. If not, he is
> presented with a login-page (which you design) and is automatically
> transferred afterwards to the page he originally requested. As a user, I
> would think this is pretty neat!
>
> Steven
>
> - - -
>
>
>



Relevant Pages

  • Re: Please speculate: "saved articles" functionality on www.news.com
    ... machine and store all the articles on a database. ... For a small list of articles, I would recommend using XML to save your IDs. ... > I presume that when the visitor asks for the list of saved articles, ... > as well in some manner of cookie. ...
    (microsoft.public.inetserver.asp.general)
  • Re: After Diagnosing Prostate C Then The Decision-Making
    ... The NY TIMES is one of the best newspapers in the World. ... avoiding the annoying cookie crape. ... They are nevertheless a fine, unusual, great independent publication ... at least I can't recall any health -medical articles at ...
    (sci.med.diseases.cancer)
  • Re: Question
    ... Our site is a newspaper site. ... Only subscribed users can view the top 10 ... These top ten articles are shown on the index page with a little ... cookie if a cookie is set then it redirects to the story page. ...
    (microsoft.public.dotnet.general)
  • Re: Question
    ... These top ten articles are shown on the index page with a little ... > cookie if a cookie is set then it redirects to the story page ... > redirect, i don't know what server variable to use. ... Next enable Forms authentication (see <authentication ...
    (microsoft.public.dotnet.general)
  • Redirect Standard Output to a live UI
    ... I've been able to read enough HOWTOs and other articles to successfully ... get another thread to start a process and I can redirect the output of ... I'd really like this to be "live", as in, as soon as the process kicks ...
    (microsoft.public.dotnet.csharp.general)