my code in page_load is like below :
if (Session["User_ID"] != null)
{
GO FOR DOWNLOAD FILES
}
the User_ID session will be create when a user logins to my web site.
after user’s login when he wants to download a file with Internet Download Manager (right click on link and choosing Dwonload With IDM) Session[“User_ID”] shows us null.
i used Session[“User_ID”] for some limitations.
how can i fix this issue for my purpose?
thanks in advance
Fix it by not relying on the session. Before redirecting to the download url stash the info you need into the cache keyed off a random string. Then pass the random string along the url. On the download page use the url string to load the cached data. No session required.