NetTalk Central

Author Topic: SQL Server Login Window  (Read 4439 times)

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
SQL Server Login Window
« on: March 03, 2008, 12:19:48 AM »
Hi All,

I have a small web app which allows users to login to different companies (diff MSSQL DB's).

I set my Glo:DBOwner in the WebHandler and everything works as I would expect - except... if I stop the web app or it dies and I restart it, users currently logged in if they click anything, up pops the SQL Server Login on my server. I can easily reproduce everytime in testing.

As everything is ticked "User must be logged in" I was expecting that the login screen would appear and force the user to login again and setup all the sessionvalues for the Glo:DBOwner again but it doesn't....

Anyone experience this problem before? Any work arounds? Is it just my wonky code?

Cheers,

Kevin

Alan Telford

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
Re: SQL Server Login Window
« Reply #1 on: March 03, 2008, 11:44:00 AM »
I do something similar to you.
in WebHandler procedure, ProcessLink method, I first do a PROP:Disconnect, then I look up the ownername from the session queue, and open a table  in the database.

  myTableName{prop:disconnect}
  GLO:DbOwner = ThisNetWorker.gsv('glo:dbowner')
  myTableName{prop:logonscreen} = false
  open(mytablename)

It seems to work ok.
Alan

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: SQL Server Login Window
« Reply #2 on: March 03, 2008, 10:41:50 PM »
Thanks Alan but for some reason I get a GPF at the prop:disconnect.

I ended up finding a workaround by checking for a blank glo:dbowner and repopulating it...

Cheers,

Kev