NULL value and login

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

  1. #1

    Default NULL value and login

    snippet of code you need to look at... elseif session('firstname') <> '' and
    session('lastName') <> '' and expire => date() and ip = '' or ip =
    Request.ServerVariables('REMOTE_HOST') THEN response.redirect
    'members/index.asp' basically, i want to limit the access by username,
    password, expiration, and ip address (and i'm passing several session varialbes
    as you could tell), however, not all records have ip addresses stored in the
    SQL DB. to prevent any problems with logins, but to add this IP restriction
    feature, i want the login to allow redirect to the index page even if the ip
    value is = NULL in the SQL database. i've tried saying NULL, i've tried empty
    quotes (like you see above), i've tried 0... none of it works. anyone know the
    answer?

    jsteinmann Guest

  2. Similar Questions and Discussions

    1. Login failed for user '(null)'. Reason: Not associated with a trus
      The webserver ASPNET account may not be properly mapped with Server2(SQL). Just delete the ASPNET acocunt in sql server, and create a Nt Account...
    2. Login failed for user '(null)'. Reason: Not associated with a trusted SQL
      I am losing lots of hair over this issue. We are trying to implement windows authentication from a web server to a database server. The web server...
    3. Kerberos not being used, only NTLM - Login failed for user '(null)'
      We have a Win2K3 Server running an ASP .NET application that connects to a Win2K3 server running SQL 2000 on the backend. Whenever a user opens...
    4. Login failed for user (null) with Remote References (CAO) in Remoting
      I have a very simple C# remoting application, IIS hosted, using remote references (MarshalbyRef objects) and a Factory model (singleton) on windows...
    5. Login failed for user '(null)'
      I am running a third-party web application (mainly ASP and specific pages with their own extension that are processed by a third-party ISAPI dll)...
  3. #2

    Default Re: NULL value and login

    allowing DB value NULL
    jsteinmann 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