Recreate a Session by using your session id
I would like to know if ASP.NET has something similar to session_id function from PHP.


I would like to do something like it using ASP.NET:


    session_id($_GET['session_name']);
    session_start();
    if ($_SESSION['mydata'] != 'somepreviousvaluesetted') {
            header("HTTP/1.0 404 Not Found");
            exit;
    } 

That is possible?
Recreate a Session by using your session id
===

I would like to know if ASP.NET has something similar to session_id function from PHP.


I would like to do something like it using ASP.NET:


    session_id($_GET['session_name']);
    session_start();
    if ($_SESSION['mydata'] != 'somepreviousvaluesetted') {
            header("HTTP/1.0 404 Not Found");
            exit;
    } 

That is possible?