Professional Web Applications Themes

CFLOGIN, CFLOGINUSER and GetAuthUser() problem - Coldfusion - Advanced Techniques

I am trying to code a login module using CFLOGIN and CFLOGINUSER. It seems to work fine until I go to use GetAuthUser(). GetAuthUser() doesn't return a value. Also, any values I store in the 'roles' attribute of CFLOGINUSER don't seem to exist either. I have noticed in the debugging output that CGI.AUTH_USER is also empty. Is this an indication of a server setting (of which I have no control over) not enabling CFLOGIN and CFLOGINUSER?...

  1. #1

    Default CFLOGIN, CFLOGINUSER and GetAuthUser() problem

    I am trying to code a login module using CFLOGIN and CFLOGINUSER. It seems to
    work fine until I go to use GetAuthUser(). GetAuthUser() doesn't return a
    value. Also, any values I store in the 'roles' attribute of CFLOGINUSER don't
    seem to exist either. I have noticed in the debugging output that
    CGI.AUTH_USER is also empty. Is this an indication of a server setting (of
    which I have no control over) not enabling CFLOGIN and CFLOGINUSER?

    mc7628 Guest

  2. #2

    Default Re: CFLOGIN, CFLOGINUSER and GetAuthUser() problem

    If you refresh your page does it work? I am experiencing something similar
    Heapster Guest

  3. #3

    Default Re: CFLOGIN, CFLOGINUSER and GetAuthUser() problem

    It appears these tags do rely on session-based storage for them to work. Every
    example I've seen of it's use also shows 'sessionmanagement=yes' in
    application.cfm. This is no good for me as session-based storage is verboten
    on the server in question. So it's client-based storage for me.

    mc7628 Guest

  4. #4

    Default Re: CFLOGIN, CFLOGINUSER and GetAuthUser() problem

    mc7628 wrote: 

    You can also use cookies to store your cflogin information--see the
    loginStorage attribute of the cfapplication tag:
    http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000217.htm#1097308

    Matt
    --
    Matt Woodward
    com
    Team Macromedia - ColdFusion
    mpwoodward Guest

Similar Threads

  1. cflogin, getAuthUser and sessionTimeout
    By spunkmayer in forum Coldfusion Flash Integration
    Replies: 0
    Last Post: October 18th, 08:09 PM
  2. cflogin
    By Mattastic in forum Macromedia ColdFusion
    Replies: 5
    Last Post: August 11th, 10:09 AM
  3. cflogin problem
    By prabin_sh in forum Coldfusion - Advanced Techniques
    Replies: 4
    Last Post: May 11th, 04:36 PM
  4. <cflogin> and <cfloginuser> problems
    By mikkime23 in forum Coldfusion - Getting Started
    Replies: 4
    Last Post: April 20th, 06:17 AM
  5. cflogin HELP
    By nckgb in forum Coldfusion - Getting Started
    Replies: 0
    Last Post: March 15th, 03:00 PM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139