Closed Thread
Results 1 to 3 of 3

Thread: Expired user still able to download

  1. #1
    TC7
    TC7 is offline Newbie
    Join Date
    Oct 2009
    Posts
    8
    Rep Power
    0

    Expired user still able to download

    Try the following:

    Log in to the frontend of your site to be able to download (downloads for registered users).

    When you click on a link, you will receive the download. That works fine.
    Leave this window open and open a new tab or window.

    Now in the new windows or tab go into the Administrator backend and 'logout' the user account you just used to test download.

    Go to your window or tab in which the frontend of your site is still open and DO NOT refresh the page.

    The situation I created here is an example where a user might have logged on to the site and downloaded a file but left his window open. Ofcourse the user will get expired over a certain amount of time.

    Now here's the catch!
    When I click the download link again I still get the file. Since the user is logged out this shouldn't be happening.

    It should check each time when a user clicks on a link, if that user is logged in.

    How do I resolve this ? I tried already but either I get a blank page or I can generate an error page using JError::raiseError. But I want a clean redirection or error message.

    Any ideas ?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    TC7
    TC7 is offline Newbie
    Join Date
    Oct 2009
    Posts
    8
    Rep Power
    0

    Re: Expired user still able to download

    Noone has an idea to fix this?

  4. #3
    PGP_Protector's Avatar
    PGP_Protector is offline Programming Professional
    Join Date
    Jun 2009
    Posts
    253
    Rep Power
    11

    Re: Expired user still able to download

    I'd bet it has something to do with the cookies.
    You logged them out, but their Login Cooking never got reset.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 10-19-2011, 03:16 PM
  2. Anyone buys bulk/expired domains?
    By TcM in forum Hosting and Registrars
    Replies: 16
    Last Post: 06-15-2008, 07:04 AM
  3. Replies: 1
    Last Post: 01-29-2008, 05:12 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts