Peter's Login Redirect
[variable]username[/variable] (3 posts)

  1. tadindustrial
    Posted 4 years ago #

    Peter, I am not a developer but I am trying to use this variable url. Could you direct me to more information on this syntax?

    I'd like for each of my users, after login, to be redirected to a specific page that is both secure and specific to that user.

    For example, when FakeUser logs in they will be directed to "FakeUser's Page". FakeUser's Page can only be accessed by FakeUser when he/she signs in. On this page I plan to put documents that only FakeUser should be able to view/download.

    Thank in advance for the help!


  2. Peter
    Plugin Author

    Posted 3 years ago #

    Hi, there is some discussion on how to use it here:


    But generally, you just put [variable]username[/variable] as part of your redirect URL and it will be dynamically replaced by the logged in user's username.

    As for creating a page that is only accessible to that user, the typical case is to use one page (and template) for that purposes. In that template simply fetch the relevant content based on the current logged in user's information, thus preventing the possibility that a user is viewing information relevant to another user.

  3. s0206
    Posted 3 years ago #

    Hi Peter

    I'm using your plugin which is fantastic btw but I am also trying to achieve the same solution as the original poster. Could you provide a link to some further info regarding your last paragraph please? I am not sure how to go about it.

    Thanks in advance.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Peter's Login Redirect
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic