Welcome Guest, Not a member yet? Register   Sign In
problem with session and script tag
#1

[eluser]Unknown[/eluser]
Hello all,

I have a problem with the session in combination with the html script tag.

I cant post the script in the message (the script line gets deleted (is that a hint to the problem ?)...

When i execute this script:

script

session_test/set/id/1

followed by

session_test

It will show id => 'THISENDSUPINTHESESSION'

When i remove the line that puts out the script (or use the script tag with empty src="", all works fine...

Can anyone verify this and tell me what is wrong ?
Any hint appreciated.

I also tried using native PHP $_SESSION but the result is the same.
Also notices that calling session_test/safe_set will work fine ... ?


TIA

- frunnik
#2

[eluser]Unknown[/eluser]
Sorry for the noise ...

The solution:

the script tag calls the page (recursively as session_test/set/id/THISENDUPINTHE...

so its ll normal that it ends up in the session....

happy coding!




Theme © iAndrew 2016 - Forum software by © MyBB