|
ritu4321 wrote: where are the session variables stored ?
They are stored at the server
ritu4321 wrote: IF cookies are disabled on the client machine what will happen to
the session variable ?
NOTHING..they will act as they normally do
Mubashir
Software Architect
Storan Technologies Inc, USA
Every job is a self portrait of the person who did it.
|
|
|
|
|
If cookies are disabled the aspnet worker process (a windows service) will manage the session information for you. If this process is reset your session information will be lost. This does happen on occasion. For more info go here
|
|
|
|
|
ritu4321 wrote: where are the session variables stored ?
if InProc session state is enabled - which is the default - then on the webserver
if StateServer is enabled then on the state server.
If SQLServer mode is enabled, within your SQL server.
ritu4321 wrote: IF cookies are disabled on the client machine what will happen to the session variable ?
Then session state will not work and you will not have access to session information. UNLESS you enable cookieless Session state.
Here's a video[^]
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
Hi Gurus,
I have a Login Page.
First i have logged in and browsed the Site, then with out Logging out, I navigate to login page by clicking Browers Back Button,
Now here when i click Forward button it is logging into the site, But at this point the session should expire. Can any one provide the Code for the above Senario.
I will be greatful to u all,
with thanks and regards,
kaushik pulpa
|
|
|
|
|
kaushik490 wrote: But at this point the session should expire
When you click Log Out Button make your session =null;
<br />
Session["UserName"] = null;<br />
Session["Password"] = null;<br />
Also you can do one thing add this code in every page load event
<br />
Response.Cache.SetCacheability(HttpCacheability.NoCache);<br />
Response.Cache.SetExpires(DateTime.Now);
OK Are you checking the Session in every page ? i.e validating the user in every page ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Thanks for ur Reply buddy,
I will check it and reply again
byeeeeeeeee
with thanks and regards,
kaushik pulpa
|
|
|
|
|
Have you looked at the member functions for the SessionState object[^]?
Clear and Abandon may be interesting to you.
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
but i think we dint solve the requirement here.The question was how do we expire a session when browser back button is pressed?
i would also like to know how to abandon a session in case of browser close event.
any suggestion or help is welcome
thnks for ur effort
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
i hav a pblm with gridview with template control.
i hav the gridview with textbox as template control
hw can i get the values in the textbox. i want it to savve
im using asp.net2.0 using c#
|
|
|
|
|
|
Stop spamming the forum and keep your advertisement with you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Hey...
Dont spam the site....Moderators please take notice
Mubashir
Software Architect
Storan Technologies Inc, USA
Every job is a self portrait of the person who did it.
|
|
|
|
|
_mubashir wrote: Dont spam the site....Moderators please take notice
In order to alert the admins please press the "spam" button on the relevant post.
|
|
|
|
|
Hi,
Get the gridviewrow from which you want to take the textbox value and use findControl method to find the textbox and when u get the textbox get its Text property.
GridViewRow rw = gv.Rows[2];
TextBox txt = (TextBox)rw.FindControl("txtData");
string value = txt.Text;
Here in above code I am getting value from the textbox which is there in the 3rd row of the gridview.
I hope this code will help u.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
I had to generate a Word Report with password.
Upon the request from the clients the application will create a Word Report at the server(where Word 2000 is installed) closed that file, exported the same to the client system. After that the file is deleted from the server.
But in some client system some gif files were not getting loaded(There also it was using Word 2000). Actually i tested from 5 to 6 machines which have been installed Word 2000. It was getting loaded at some and not at the other.
But it was also not getting loaded at the systems where Word 2003 is also installed.
But whatever the client is the file is generated correctly at the server before it is exported. I have checked that by commenting the code that deletes the file at the server.
Please help....
O
|
|
|
|
|
How to execute exe in ASP.NET and retrieve the output form the exe.
Rickey
|
|
|
|
|
Rickey_Me wrote: How to execute exe in ASP.NET and retrieve the output form the exe.
Same way as in any other .NET application. With System.Diagonstics.Process.Start()
|
|
|
|
|
I tried it but how to set input parameter and get the output from the exe.
Rickey
|
|
|
|
|
OK...
you can set input parameters using 'Arguments' property located in ProcessInfo.
e.g,
<br />
Dim pinfo As New System.Diagnostics.ProcessStartInfo<br />
pinfo.Arguments = "myagr1 myarg2 myarg3"<br />
pinfo.FileName = "C:\MyExe.exe"<br />
Now to read the output from the exe, you need to set
pinfo.RedirectStandardOutput = True
And read the output as follow,
<br />
Dim p As System.Diagnostics.Process<br />
p = p.Start(pinfo)<br />
p.WaitForWxit()<br />
Dim str as string = p.StandardOutput.ReadToEnd<br />
Hope it helps
Mubashir
Software Architect
Storan Technologies Inc, USA
Every job is a self portrait of the person who did it.
|
|
|
|
|
haneef1 wrote: I am b.tech graduate in inforamtion technology. One year exeperience in .net, presently working
in delightsoft hyderabad.
Thats nice
haneef1 wrote: Want to be earn money just surfing websites ( opening the websites in specied broswer call ougo
it's fress try now)
Dude go home and take rest.
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
thanks i will try.
Rickey
|
|
|
|
|
Hi all,
My WebService WebMethod is returning DataSet. my wsdl content is like this
<NewDataSet xmlns="">
<ConsumerReport diffgr:id="ConsumerReport1" msdata:rowOrder="0">
<Initials>S</Initials>
<FirstName>S</FirstName>
<Surname>MVUNDURA</Surname>
<IDNo>7102095092182</IDNo>
<BirthDate>19710209T00:00:00.0000000+02:00</BirthDate>
<Gender>Male</Gender>
<TitleDesc>Mister</TitleDesc>
<ReferenceNo>T608575870</ReferenceNo>
<ExternalReference />
</ConsumerReport>
<ConsumerReport1 diffgr:id="ConsumerReport11" msdata:rowOrder="0">
<Initials>S</Initials>
<FirstName>S</FirstName>
<Surname>MVUNDURA</Surname>
<IDNo>7102095092182</IDNo>
<BirthDate>19710209T00:00:00.0000000+02:00</BirthDate>
<TitleDesc>Mister</TitleDesc>
<LastUpdatedDate>20061021T00:00:00.0000000+02:00</LastUpdatedDate>
</ConsumerReport1>
i need to display displayName node before the ConsumerReport node. like this...
<NewDataSet xmlns="">
<displayname>THIS IS CONSUMER PERSONAL INFORMATION</displayname>
<ConsumerReport diffgr:id="ConsumerReport1" msdata:rowOrder="0">
<Initials>S</Initials>
<FirstName>S</FirstName>
<Surname>MVUNDURA</Surname>
<IDNo>7102095092182</IDNo>
<BirthDate>19710209T00:00:00.0000000+02:00</BirthDate>
<Gender>Male</Gender>
<TitleDesc>Mister</TitleDesc>
<ReferenceNo>T608575870</ReferenceNo>
<ExternalReference />
</ConsumerReport>
<displayname>THIS IS CONSUMER TRACE ID INFORMATION</displayname>
<ConsumerReport1 diffgr:id="ConsumerReport11" msdata:rowOrder="0">
<Initials>S</Initials>
<FirstName>S</FirstName>
<Surname>MVUNDURA</Surname>
<IDNo>7102095092182</IDNo>
<BirthDate>19710209T00:00:00.0000000+02:00</BirthDate>
<TitleDesc>Mister</TitleDesc>
<LastUpdatedDate>20061021T00:00:00.0000000+02:00</LastUpdatedDate>
</ConsumerReport1>
How to Handle through the code. is there any method availble to add node in dataset?
please help me.
regards
GV Ramana
|
|
|
|
|
stop this type of spam. this site is for knowledge sharing.
administrator please stop this type of spam
regards
GV Ramana
|
|
|
|
|
Ramana. G.V wrote: administrator please stop this type of spam
In order to stop spam, please press the "spam" button in the relevant post. The administrator will then be alerted to its presence.
|
|
|
|
|
Hi guys,
First time poster be gentle :p.
Iv been playing with Fiddler ( a http debugging util) lately and noticed that CodeProject has no compression enabled. The code project front page shrinks from 53kb to 13kb !!!, that's a huge improvement.
Whats the pro / cons of having compression enabled for a site. Why would we not have compression enabled ?
The only cons I can think of is,
1. Extra overhead to compress content on the servers (codeprojects, 15k online members ?), how would one create a benchmark/test for this?
2. Older browsers not supporting compression?
Been using blowery compression on our back office systems (50-100 users) and its making a huge improvement.
Reynard
(mind the english)
|
|
|
|