NetTalk Central

Author Topic: multisite demo only has session values as long  (Read 3287 times)

robirenz

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • Email
multisite demo only has session values as long
« on: December 06, 2013, 10:04:47 AM »
I can't get the multisite NT app to work with string session values.
Can't even get the demo app to use string values instead of the old long values.. something is wrong somewhere..
I have the security tab set up correctly (I don't have the Use Number for SEssion ID) ticked..

so something is a miss... anybody?

Best Regards...

Roberto Renz

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: multisite demo only has session values as long
« Reply #1 on: December 08, 2013, 09:20:46 PM »
Example seems to be generating alpha-numeric session ID's here.

Session values are generated in netweb.clw, NetWebServer._GenSessionId method.
That would be the place to add some self.trace code to see what's going on. Specifically you'd want to know the value of the parameter (p_length). If it is < 1 then numeric session ID's are generated.


robirenz

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • Email
Re: multisite demo only has session values as long
« Reply #2 on: December 09, 2013, 05:18:48 AM »
Tried it again..
still getting a long and p_length in my host app = 0

I didn't do anything to the demo except change the name of the app etc.

any other ideas?   should I reintall a version numer?  I'm using 7.28 now.

robirenz

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • Email
Re: multisite demo only has session values as long
« Reply #3 on: December 09, 2013, 07:13:26 AM »
OK..
found the problem maybe...

if I access my site with an ip, domain name etc. I get a 30 char session ID
but If access the site with 127.0.0.1  then I get a long session ID

any ideas of why this would be?

Best Regards...

Roberto Renz

robirenz

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • Email
Re: multisite demo only has session values as long
« Reply #4 on: December 09, 2013, 09:35:43 AM »
well I got my normal apps to work ok and even the host program to work right sometimes, but sometimes alfter compile I only get LONG session ID's and then I recompile and get the String session ID.  I'm dumbfounded....

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: multisite demo only has session values as long
« Reply #5 on: December 09, 2013, 09:46:52 PM »
Your browser remembers the previous session ID in a cookie (a memory cookie) and uses that as a preference. So you probably need to close your browser to kill the cookie. Especially if you are testing many apps at the same time, and one has the Session ID forced to be a long.

cheers
Bruce