session javascript and session ashx
I want create session in java script like
string path="test/";
session['pathfolder']=path and call it in ashx file.
I tried like '<%=session["pathfolder"]='"+path+"'%>'
but in ashx just result '+path+' not variable in string path.
everyone can help me?

Mega AnaskaPosted Jul 12, 2017, 9:33 PM
Manikandan MurugesanPosted Jul 12, 2017, 12:13 PM
Make sure the handler inherits from
System.Web.SessionState.IRequiresSessionState, just like in the link you provided. If you've already done this, then you should have stated you did it AND posted your code.You shouldn't need to have the
HttpContext.Currentpart, if you import the namespace.