SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Apr 2004
    Location
    Germany
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question WACT and Session/User-Login

    Hi,

    is it possible to manage Sessions and User-Logins (for this without Permissions) with WACT on an "easy" way ?

    Just Something like that:


    Code:
    <?php
    session_start();
    if (!isset($_SESSION['auth'])) {
        $auth = new Auth;
    }
    $auth->start();
    
    ?>
    and so WACT will Display the Login-Page if the User is not Logon ?

    thx for the Help.

  2. #2
    No. Phil.Roberts's Avatar
    Join Date
    May 2001
    Location
    Nottingham, UK
    Posts
    1,142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    WACT has no user-authentication mechanisms. So you'll need to roll your own.

  3. #3
    SitePoint Guru
    Join Date
    Nov 2002
    Posts
    841
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This may be one of the most commonly asked WACT questions. I think we need to make an example showing how to do this.

  4. #4
    SitePoint Member
    Join Date
    Apr 2004
    Location
    Germany
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    I think we need to make an example showing how to do this.
    hey, that woud be nice

    Now im Using the AdoDB-Sessions and form the "verry old" PHPLib the Auth.
    I just Change in the Auth-Class the PHPLib-Session to the AdoDB-Session.
    It works.

    But I think it woud be nice, to use the same DBC and Validator as Wact uses.
    so long

  5. #5
    SitePoint Wizard gold trophysilver trophy
    Join Date
    Nov 2000
    Location
    Switzerland
    Posts
    2,479
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    is it possible to manage Sessions and User-Logins (for this without Permissions) with WACT on an "easy" way ?
    Thinks there's nothing wrong with doing things that way. Jeff's done alot of work on controllers in WACT recently though, so you could do things in a smarter way, using a front controller and attaching the authentication as an intercepting filter. A place to start looking is in wact/examples/apps/demoapp/index.php in CVS

  6. #6
    SitePoint Member
    Join Date
    Apr 2004
    Location
    Germany
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by HarryF
    ...so you could do things in a smarter way, using a front controller and attaching the authentication as an intercepting filter. A place to start looking is in wact/examples/apps/demoapp/index.php in CVS
    thanks for the Tip. I will checkout the latest CVS-Version and will try it
    so long

  7. #7
    SitePoint Member
    Join Date
    Oct 2004
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by HarryF
    Thinks there's nothing wrong with doing things that way. Jeff's done alot of work on controllers in WACT recently though, so you could do things in a smarter way, using a front controller and attaching the authentication as an intercepting filter. A place to start looking is in wact/examples/apps/demoapp/index.php in CVS
    But how to show a login form using an intercepting filter?
    and how to know in the front controller when the request came from that form?


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
  •