Re: What has v11 done with Session variables?
OK, I'm convinced NONE of my session variables are working as session variables in v11 even though they still work perfectly in v9. I've tried every combination of DIM including DIM GLOBAL, plain old DIM, DIM SHARED, no DIM at all (like my original pages), and even DIM LOCAL and nothing makes the session variables work - in v11. But they still work fine in v9 with no changes to the A5W pages.
A couple test pages are attached if you want to try them on your own v11 server. These are very simple, hard coded pages that should work on any A5 WAS server. No database is required - just stick the pages on your server and open session_test1.a5w.
NOTE 1: The session_test1.a5w page calls session_test2.a5w but session_test2.a5w calls itself. I tested with a "session_test3.a5w" and the results were the same as having the second page call itself.
NOTE 2: There are 2 "session" variables created. One was created outside of (before) the <form></form> section and the other is created inside the form. They are displayed in an <input> box in session_test1.a5w so you can change the text to anything you want.
NOTE 3: If checking the code, don't get confused by the <table> in the a5w page. The only reason the <table> exists is because the original pages that were stripped down to make these had tables in them - I was just too lazy to remove the tables when testing.
NOTE 4: I added some traps to determine when a variable was "lost" and created appropriate messages. Without the traps the page would just error out.
Can anyone figure out why the "session" variables in these pages don't act like session variables on a v11 server?
Here's how they work on a v9 server.
And here's the result after clicking the initial submit button in v11:
session_result1.png
And here's the result after clicking the second submit button in v11:
session_result2.png
OK, I'm convinced NONE of my session variables are working as session variables in v11 even though they still work perfectly in v9. I've tried every combination of DIM including DIM GLOBAL, plain old DIM, DIM SHARED, no DIM at all (like my original pages), and even DIM LOCAL and nothing makes the session variables work - in v11. But they still work fine in v9 with no changes to the A5W pages.
A couple test pages are attached if you want to try them on your own v11 server. These are very simple, hard coded pages that should work on any A5 WAS server. No database is required - just stick the pages on your server and open session_test1.a5w.
NOTE 1: The session_test1.a5w page calls session_test2.a5w but session_test2.a5w calls itself. I tested with a "session_test3.a5w" and the results were the same as having the second page call itself.
NOTE 2: There are 2 "session" variables created. One was created outside of (before) the <form></form> section and the other is created inside the form. They are displayed in an <input> box in session_test1.a5w so you can change the text to anything you want.
NOTE 3: If checking the code, don't get confused by the <table> in the a5w page. The only reason the <table> exists is because the original pages that were stripped down to make these had tables in them - I was just too lazy to remove the tables when testing.
NOTE 4: I added some traps to determine when a variable was "lost" and created appropriate messages. Without the traps the page would just error out.
Can anyone figure out why the "session" variables in these pages don't act like session variables on a v11 server?
Here's how they work on a v9 server.
And here's the result after clicking the initial submit button in v11:
session_result1.png
And here's the result after clicking the second submit button in v11:
session_result2.png
Comment