NetTalk Central

Author Topic: Page Reload Button Clears my Session Variable  (Read 4491 times)

bijan

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • Email
Page Reload Button Clears my Session Variable
« on: January 23, 2018, 08:57:14 AM »
Hi,

When I press the Page reload button to the left of the URL address bar my session variable goes blank.
What is causing this?

Regards

Bijan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Page Reload Button Clears my Session Variable
« Reply #1 on: January 23, 2018, 10:06:35 PM »
Hi Bijan?

I don't know.
I'm guessing you have code setting the session value to blank somewhere, and it happens when you refresh the page.

Do you have support for multiple tabs turned on? Is the TabID (as seen in the log) the same for the otiginal page request, and the refreshed page request?

and which build of NetTalk are you using?

cheers
Bruce

bijan

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • Email
Re: Page Reload Button Clears my Session Variable
« Reply #2 on: January 24, 2018, 09:17:26 PM »
Hi Bruce,

I turned off Multi-Tab and it works now. It is not clearing the SV.
Do you recommend turning this feature on?
I see you introduced early on with version 8:

http://www.capesoft.com/docs/NetTalk8/NetTalkWebBasic.htm#MultiTab

It sounds like a good feature to have on. I wonder why it is clearing my session variable.

Let's talk about it in the NT meeting.

Thanks





Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Page Reload Button Clears my Session Variable
« Reply #3 on: January 24, 2018, 09:59:52 PM »
Hi Bijan,

>> I turned off Multi-Tab and it works now. It is not clearing the SV.

good.

>> Do you recommend turning this feature on?

I'm neutral, on or off depending on what your needs are.
Usually it's off unless you specifcally want it to be on.

>> I see you introduced early on with version 8:

yes, with several tweaks along the way.

>> It sounds like a good feature to have on. I wonder why it is clearing my session variable.

presumably because of a bug. Which is why I'm interested in knowing which build you are using. I'm not going to look too hard if it's an older build.

Cheers
Bruce

bijan

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • Email
Re: Page Reload Button Clears my Session Variable
« Reply #4 on: January 25, 2018, 08:24:14 AM »
I am running version 9.25. However, my test with 10.15 got the same result.
It could be something I am doing in my login/logout forms.

Will look at it more closely here too.

Cheers
« Last Edit: January 25, 2018, 08:26:15 AM by bijan »