CFML Session settings affecting DW Login Behaviour?

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default CFML Session settings affecting DW Login Behaviour?

    Hi everyone - I think I am going a little stir crazy. I've been using
    Dreamweaver / Ultradev since DW1/UD1/Drumbeat and have used the login
    authentication behavior on many occasions, with no problems, until now... The
    problem is this: I am using the CFMX 6.1 both locally and on the production
    server. Dreamweaver has a site view set up with the CFMX server model locally.
    The database table containing the usernames and passwords is in an MS Access dB
    (for now). I used DW to create the login authentication behavior (Insert >
    Application Objects > Authentication > Log In User). The login page was
    created with a form...the main page has the authenticate user behaviour. The
    main page has a logout link that logs out the user. The main page redirects the
    user to a fail page if they have not logged in. Everything works fine when I
    surf to these pages...locally. These pages also work when I surf to them on
    another machine within our network. However - posting the pages onto the
    production server, with (supposedly) the exact same settings on the CFMX Server
    as our local dev servers , then surfing to them, always causes the user to go
    to the failure page. No pages were altered after instituting the behaviouir.
    Just the raw CFMX code. Upon intial debugging, I discovered that the database
    comparison code actually works (alerting that yes there is a match, or no there
    is not a match) so my focus is on the session var settings... Again, none of
    the code was altered, these lines look innocent enough. So what am I missing?
    Why would the login behaviour always go to the failure page when these pages
    are visited from a production server? Is there some CFMX Server settings I need
    to adjust? regards

    <cflock scope="Session" timeout="30" type="Exclusive">
    <cfset Session.MM_Username=FORM.ud_username>
    <cfset Session.MM_UserAuthorization=MM_rsUser.UserLevel[1]>
    ...ETC...

    eapostol Guest

  2. Similar Questions and Discussions

    1. Add clause to the login behaviour....how?
      I want to add some more criteria to a user logging in other that correct username and password. I want to base it on a specific date and...
    2. php login behaviour shows errors
      Is there a problem with the Dreamweaver standard php behaviours? In particular the user login scripts? e.g. I have tried with both the "Newland...
    3. Login user behaviour
      I inserted the login behaviour but edited it so that is would check a username and an email address for a valid login (the user may have either) and...
    4. Color settings - What else could be affecting the color of my images?
      Hi! I just got a new G5, so I transfered all my files over and reinstalled my CS. I open up one of my previously editted images and it looks super...
    5. session problem - login screen continually reloads after pressing the login button
      I am trying to get sessions to work on a log in screen to give certain users access to certain pages/directories. The problem is that when the...
  3. #2

    Default Re: CFML Session settings affecting DW Login Behaviour?

    I have run into exactly the same problem before and it is a PITA.

    Firstly I would confirm that sessions are being allowed on the server by
    using a test page to set a session and then try to read it on the following
    page. If this errors then you may need to contact the admin of the server.

    I ended up using cookies rather than sessions to resolve the problem

    --
    Regards

    Paul Whitham
    Macromedia Certified Professional for Dreamweaver MX2004
    Valleybiz Internet Design
    [url]www.valleybiz.net[/url]

    Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    [url]www.macromedia.com/support/forums/team_macromedia[/url]

    "eapostol" <webforumsuser@macromedia.com> wrote in message
    news:d1comh$md5$1@forums.macromedia.com...
    > Hi everyone - I think I am going a little stir crazy. I've been using
    > Dreamweaver / Ultradev since DW1/UD1/Drumbeat and have used the login
    > authentication behavior on many occasions, with no problems, until now...
    The
    > problem is this: I am using the CFMX 6.1 both locally and on the
    production
    > server. Dreamweaver has a site view set up with the CFMX server model
    locally.
    > The database table containing the usernames and passwords is in an MS
    Access dB
    > (for now). I used DW to create the login authentication behavior (Insert
    >
    > Application Objects > Authentication > Log In User). The login page was
    > created with a form...the main page has the authenticate user behaviour.
    The
    > main page has a logout link that logs out the user. The main page
    redirects the
    > user to a fail page if they have not logged in. Everything works fine
    when I
    > surf to these pages...locally. These pages also work when I surf to them
    on
    > another machine within our network. However - posting the pages onto the
    > production server, with (supposedly) the exact same settings on the CFMX
    Server
    > as our local dev servers , then surfing to them, always causes the user
    to go
    > to the failure page. No pages were altered after instituting the
    behaviouir.
    > Just the raw CFMX code. Upon intial debugging, I discovered that the
    database
    > comparison code actually works (alerting that yes there is a match, or no
    there
    > is not a match) so my focus is on the session var settings... Again, none
    of
    > the code was altered, these lines look innocent enough. So what am I
    missing?
    > Why would the login behaviour always go to the failure page when these
    pages
    > are visited from a production server? Is there some CFMX Server settings I
    need
    > to adjust? regards
    >
    > <cflock scope="Session" timeout="30" type="Exclusive">
    > <cfset Session.MM_Username=FORM.ud_username>
    > <cfset Session.MM_UserAuthorization=MM_rsUser.UserLevel[1]>
    > ...ETC...
    >

    Paul Whitham TMM Guest

  4. #3

    Default Re: CFML Session settings affecting DW Login Behaviour?

    "eapostol" <webforumsuser@macromedia.com> wrote in message
    news:d1comh$md5$1@forums.macromedia.com...
    > ? Is there some CFMX Server settings I need
    > to adjust? regards
    Check this:

    [url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16564[/url]


    --
    ----------------------------
    Massimo Foti
    DW tools: [url]http://www.massimocorner.com[/url]
    CF tools: [url]http://www.olimpo.ch/tmt/[/url]
    ----------------------------



    Massimo Foti Guest

Posting Permissions

  • You may not post new threads
  • You may 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