Michael Nemtsev [MVP] pisze:
Quote:
JS runs on client, and your session in serverside stuff.
There is no standard way to access your session in js if you are not
using hidden fields or ajax
I don't want to access it.
See, I have a flash upload "widget", that uploads files nicely to my
ASP.NET website, but doesn't send the session cookies.
In ASP.NET I need to know which user has sent me the file - so I have to
access this user's session. One method I thought of is to use Javascript
to take out the session ID from cookie and send it with the picture,
e.g. modify the form action from
upload.aspx
to
upload.aspx?session_id=9uu8053ungwe8ryt83
so I can get the session ID on ASP.NET side.
However, I need a way to tell ASP.NET "here's the session ID - use this
one".
--
/\ /\ [ Jakub 'Kocureq' Anderwald ] /\ /\
=^;^= [ [nick][at][nick].com ] =^;^=
/ | [ GG# 1365999 ICQ# 31547220 ] | \
(___(|_|_| [
kocureq@jabber.org ] |_|_|)___)