CodeIgniter Forums
problem with session and script tag - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: problem with session and script tag (/showthread.php?tid=24391)



problem with session and script tag - El Forum - 11-09-2009

[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


problem with session and script tag - El Forum - 11-09-2009

[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!