Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
IIS サーバー (win2003 の下) の独自の仮想ディレクトリには、さらに Web アプリケーション (asp.net 4) があります。また、Oracle 11g データベース内のすべての独自のスキーマとアカウントに関連します。ログイン後、すべてのユーザーにはいくつかのセッション変数 (ユーザー名、スキーマ名など) があります。実行時のユーザー管理のためにこれらの情報を取得したいと考えています。サーバーからどのように尋ねることができますか?
多分あなたはこれを探していますか?
取得するには:
string username = Session["Username"];
セッションに物を置くには:
Session["Username"]="SomeValue";