NetTalk Central

Author Topic: Session values not displaying  (Read 2255 times)

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Session values not displaying
« on: April 16, 2013, 11:24:25 PM »
I have noticed in 707 that session values set on login are not appearing although they did so it 706
In my login procedure I have the following:
p_web.SetSessionValue('WebLoginName',CLIP(WEB:LoginName))

In my header I have:
<div class = "nt-left nt-site-header-logo"><img border="0"       src="client/Client.jpg"  /></div>
<div class = "nt-center-justify"><h1>Logged in User:<!-- Net:s:WebLoginName--></h1></div>

Please look at the 2 attached images on the same application compiled in the 2 versions

[attachment deleted by admin]
« Last Edit: April 20, 2013, 08:12:35 AM by terryd »
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11191
    • View Profile
Re: Session values not displaying
« Reply #1 on: April 17, 2013, 02:06:50 AM »
Do you have the "content body" feature turned on or off?
(WebServer procedure, General tab I think.)

cheers
Bruce

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Session values not displaying
« Reply #2 on: April 17, 2013, 10:32:07 PM »
In NT707 Use Content Body is checked
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Session values not displaying
« Reply #3 on: April 17, 2013, 10:34:00 PM »
Testing with unchecked made no difference
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11191
    • View Profile
Re: Session values not displaying
« Reply #4 on: April 17, 2013, 10:45:09 PM »
Hi Terry,

I tried here in example 3 and it seems ok.
maybe I've fixed it already for 7.08?

cheers
Bruce

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Session values not displaying
« Reply #5 on: April 20, 2013, 08:11:55 AM »
Hi Bruce
Interesting.
There seems to be a change in the way that Nettalk707 treats code in a called text file from all previous versions.
I checked using web3 as you did  and found that the user name appeared if I entered the HTML code in the XHTML tab.
Going back to my standard code the only difference is that I call a text file In the Page header tag XHTML section like this.

<!-- Net:f:Client/myHeadingWhenLoggedIn.txt -->

When this runs the result is as you have seen i.e. the User Login string appears but no UserLoginName.

I then copied all the code in the text file  into the XHTML section just below the Net call and reran. This displayed the correct information.
If you look at the attached the first occurrence of User Login: is generated by the net call, the second with the User Login and login name is generated by the HTML code copied from the text file.
This is the code I copied from the text file
<div class = "nt-left nt-site-header-logo"><img border="0"       src="client/Client.jpg"  /></div>
<div class = "nt-center-justify"><h1>User Login:<!-- Net:s:WebLoginName--></h1></div>

[attachment deleted by admin]
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11191
    • View Profile
Re: Session values not displaying
« Reply #6 on: April 20, 2013, 11:03:21 PM »
ahh - yes - tags in text files are not being parsed.
yes, that's a known bug, and already fixed for the 7.08 build.
(which is likely to go out on Monday.)

cheers
Bruce

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Session values not displaying
« Reply #7 on: April 21, 2013, 12:12:01 AM »
Thanks Bruce
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186