User Session Expires in asp.net3.5

Feb 2, 2010 at 10:27 AM

Hi,

I am using the following code to transfer the zip file on sftp server. for that i am using following code:

SshTransferProtocolBase myscp = new Sftp(strSFTPHost, strUserName, strPassword);                 
                myscp.Connect();
                if (myscp.Connected)
                {
                    myscp.Put(strFileToupload, strCurrentDirectory);
                    
                }
                myscp.Close();

After transferring the file my user session is expires automatically. This is a strange behavious. Can any bodyhelp me out in this.

 

Vijay