is there any way to find out the reason for session expiry?
View Complete Post
I was trying your options by using "(operating system) cmdExec" to delete folders which were 15 days olders. But here i am getting error if i look into view history of sql agent job... below is my command that i gave in Job step.
EXEC xp_cmdshell 'forfiles /p "z:\backup" -d 15 /c "cmd /c if @isDir==True echo RD /Q /S @FILE&RD /Q /S @FILE"'
And the error is :
The process could not be created for step 1 of job .....(reason: The system cannot find the file specified). The Step failed.
but if i give this command in New Query Window, i am able to delete the folders successfully.
Please advice me if am wrong
I have a SP which writes to a table all processes which are being executed when application decides to stop waiting for results of the query. It works very well but problem is that it does not dump all SPIDs but only some of them which are being executing
for a long time. Common pattern that a lot of SPIDs will be blocked by single SPID which will not be part of the output which is being generated. How do I dump all SPIDs and what they are doing along with SP below?
'blk object' = t1.resource_associated_entity_id,
(SELECT SUBSTRING(text, t3.statement_start_offset/2 + 1,
(CASE WHEN t3.statement_end_offset = -1
THEN LEN(CONVERT(nvarchar( Session expiry on closing browser window The article Session expiry on closing browser window was added by RustyIron on Saturday, February 26, 2011.Ever wondered what occurs when a user closes his browser window. For the time, the user was interacting with a site, his session was active and everything was going smooth.But how does our player ("Server" , here) come to know that a user has
I have databound GridView in my page and I have a hidden DIV in all rows. Each row contains a Button that I want it to make the DIV visible for me! how can I use that with jQuery?!
here is the code page:
Hi to all,
I have some things that I want to know. I am right now using a free asp.net webhosting ("somee.com"). The problem is that when I am visiting a page, there's a tendency that values stored in my session variables are lost. Therefore, it causes an error when the requested page is loaded.
1. I am thinking of using sessionState mode="SqlServer". Will it solve my problem?
Actualy Im working on it but Im having problems when connecting to the sql database.
2. Is that a problem in the webhost?
3. Do free webhosting sites provide allow session state in the sql server?. Because ive tried it locally into my computer and error say's i should intall the ASP.NET Session State SQL Server version 2.0 or above.
I have a web application in which i need to logout the user if he clicks the logout button or even if he closes his browser window. On Logout button click, i am doing session.Abandon(), but how to go about his browser window close.
Can anybody help with a code sample.
In my live site session time out with in 5 min only.how can i get the default i.e 20 min time . below webconfig file give below
<?xml version="1.0"?><!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in \Windows\Microsoft.Net\Framework\v2.x\Config --><configuration> <configSections> <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"> <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup,
I am creating a simple shopping cart using a datatable that is passed into a session object. I have a small mini cart that displays the total number of items in the cart as well as the running total - this is displayed in a web control. When the web control starts up I run a try/catch to see if the session object exists, if it doesn't I create the datatable for the cart and store it in the session. I then have a datalist control that contains all the information for my products including an "add to cart" button. When the page loads everything looks fine. If I click on an "add to cart" button nothing happens to the session information. If I click on it again, the session information updates - displaying only one item is in the cart and then counts up correctly there after. Additionally, after adding an item, if I select a different item in the list, the same issue occurs. I am not sure why this is happeing, if anyone can give me an idea I would appreciate it.
I m facing a problem in my application with server so it needs changes .
My question is
Q1.Where should I store my session if i want to disconnect my server or How shold we storesession in web farm if specific serever is shut down.
Q2.Can anyone explain me difference between WEB FARM and WEB GARDEN
What are the issues (if any) of setting sessions to expire after an extended period of time as in 4-8 hours? I'm building an intranet app which is designed so that users will access it once in the morning and then leave it used, possibly, for hours at a time. I'm assuming that there aren't too many since
1) we're running it on a intranet 2) sessions are soley to retain state between requests3) its not like a connection to the DB where you can conceivable run out
iam insert record using datable in gridivew,iam using session to hold the record,
there is any other way to hold the record in datable.
dtempty.Columns.Add("storeid"); dtempty.Columns.Add("ratetypeid"); dtempty.Columns.Add("ratedesc"); dtempty.Columns.Add("slabs"); dtempty.Columns.Add("days"); dtempty.Columns.Add("rate"); dtempty.Columns.Add("contid"); dtempty.Columns.Add("continertype"); DataRow row; row = dtempty.NewRow(); row["ratetypeid"] = ddlratetype.SelectedValue; row["ratedesc"] = ddlratetype.SelectedItem.Text; row["slabs"] = ddlslabs.SelectedValue; &n
Having a very wierd problem. I have an application that uses Crystal Reports and it uses what I have found to be a common scenario (I am not a CR expert in any way). I have an ASPX page that gathers options for the report, and then it goes and gets the data and if there is some, a button appears for them to launch the report. On clicking that button, the code sets some values in the HttpResponse.Context area, then performs a Server.Transfer to another ASPX page that is our Report Template. This page contains the CR stuff and it generates a PDF version of the report. It then does the following code:
With HttpContext.Current.Response .ClearContent() .ClearHeaders() .ContentType = "application/pdf" .AddHeader("Content-Disposition", "inline; filename=Report.pdf") .BinaryWrite(s.ToArray) .End() E
I just wanna setup a .net framework 4.0 on my VPS for a
new site. While I could not find the ASP.NET tab on properties. I did
some research find some similar problems but haven't fixed it yet.
Any suggestion would helpful.
I wrote a class to pull adinfo and for the life of me I can't seem to figure
out why it says "Invalid Login Name" no matter what I type in. If I leave
it blank it seems to work properly but it doesn't seem to be actually searching
the AD. I'll drop the whole class here, it's being initiated by a button click
on an outside form.
Thanks in Advance for any help Offered,Postholes
Public Class LoginButton
Dim UserID As String = Nothing
Dim DomainDN As String = ConfigurationManager.AppSettings("myConnectionString")
Dim ADEntry As DirectoryEntry = New DirectoryEntry(DomainDN)
Dim objSearch As New System.DirectoryServices.DirectorySearcher(ADEntry)
Dim oResults As DirectoryServices.SearchResultCollection
Dim oResult As DirectoryServices.SearchResult
Dim RetArray As New Hashtable
Dim page As Page = DirectCast(HttpContext.Current.Handler, Page)
Dim TextLogin = DirectCast(page.FindControl("
I would like to get a persons name from their username - a common query on forums i know, but i haven't managed to get mine working yet and any help would be appreciated.
I currently have this code that I found here: http://www.vbforums.com/showthread.php?t=612655 (Thanks Chris128)
I have adapted it from VB into VB.net. The page renders but when i enter my username into the Username textBox and hit the submit button (Which calls IsUser) I just get "The specified domain either does not exist or could not be contacted." I have tried lots of other code but I always get this response...
If anyone can help by posting links to a tutorial or another post for code that they know works, i will give it a go.
Partial Class UserInfo
Private Function GetRealNameFromAd(ByVal UsernameToFind As String) As String
Using searcher As New DirectorySearcher(New DirectoryEntry())
searcher.PageSize = 1000
searcher.SearchScope = SearchScope.Subtree
searcher.Filter = "(&(samAccountType=805306368)(sAMAccountName=" & UsernameToFind & "))"
Using Results A