answersLogoWhite

0

HTML is a static language and hence access to Sessions is not available in HTML pages. Sessions are accessible only for J2EE systems that use Servlets, JSP etc.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you set the session variables in jsp?

The session variables can be accessed in a jsp page from the request object. Note: Accessing session contents in JSP is not a good design practice


Create a HTML page to display the information of student details?

student details example by html


What is the code HTML for?

HTML is the code that tells a web browser how to display a web page on your computer screen.


What is behind a webpage?

Behind the Web Page is the HTML. The HTML is a language for the browser to read, and instructs the browser in how to display the page. If you want to see the HTML, right click on the page. A box will open, then select view source. A window will then open with the HTML for that page.


What is the compiler used for HTML?

HTML is not compiled. It is interpreted. Whichever browser you use is the interpreter for HTML. That is the job of a browser: to read and interpret HTML and then display the page.


What does the HTML container tag communicate to your browser?

HTML communicates to the browser to define the page layout. It can tell the browser how and where to display text and other items on the page.


What is the HTML for not letting someone access the same page twice in the same session?

HTML does not provide session handling. If you are using PHP for sessions though, you could simply check whether a session exists before the page is built up and return an error if there is already one. Of course you will have to watch out with that, because it's possible that the session hasn't been closed when the user left the page, i.e. it might happen that a user is opening the page for the first time but already has an existing session anyway.


What is difference between session and view state in vb net?

View state applies to a specific instances of a ASP web page. It is normally held in a hidden field in the HTML response to the client (although there are ways to hold it in a database or other storage medium). It holds the properties of controls on your page so that they are retained between postbacks. You do need to be cautious about using view state. If you use it unnecessarily, it can lead to very large HTML files that get transferred to the browser. You can turn off viewstate on an application, page, or individual control level using the EnableViewState property. Session, or Session State, is an collection that you can assess to save and retrieve objects from one page view to another. Unlike viewstate, session state is held in memory (or a database for large applications), and the variables that you are holding in session are not lost as you move from page to page. In fact, unless/until you remove an object from Session, it will remain accessible until the session is closed.


Which menu in the browser do you use to display he HTML?

In Firefox 3, it is View > Page Source.


Can you connnect databases to HTML pages?

Yes; you will need to use PHP or ASP to connect to your database and display its content in an HTML page.


How do you do HTML programs?

HTML is not a programming language but rather a interpreted language meaning that not all browsers see it the same. Therefore you cannot make HTML programs unless you are making an internet browser.


How do you insert picture from desktop to HTML page?

You don't actually insert an image into an HTML page. An HTML page can display an image from any location where the browser has access to the file. Let us assume that the image you want to display on your HTML page is image.jpg. You use the tag to tell the browser to display your image. The person looking at your HTML page needs to be able to access the file on your desktop. You normally would upload your image to the Web server, so the visiting browser can see your image. If the image is on your desktop and the browser has access to your desktop content, here is the code you would use to display your image on the Web page: