Hibernate Object States – Transient, Persistent and Detached

In this tutorial I will discuss what are the states of objects (transient persistent and detached objects) in Hibernate framework. You might be knowing that Hibernate is an ORM (Object Relational Mapping), which is an automated persistent of objects in a Java application to the tables in a relational database. Hibernate defines and supports three different object states: transient, persistent and detached.

Continue

Session Management in Python, Flask

Introduction You will see here how to do session management in Python Flask. Session management in Python flask generally involves starting session, removing item from session, clearing item from session, updating item in session. You will see in subsequent sections later how to put value or an item into session, updating value in session, clearing session completely, removing value from session and removing a dictionary items from session.

Continue

Flash Message Management in Python, Flask

Introduction We will see here how to do flash message management using Python, Flask. Ideally almost every application needs to provide some meaningful message to end user after some activities performed by end users. Such activities may be registration on a site, login, payment, etc. So after each operation whether success or failure most of the time we need to provide meaningful message so that end user will understand what happens or what would be the next step.

Continue

Captcha using Codeigniter

Introduction This tutorial will show you how to generate captcha image using Codeigniter Captcha Helper. We will also see how to use captcha using CodeIgniter framework. Captcha helps to prevent automatic submission of forms on the web pages. Captcha would not have been there then some users would have filled your site with spams. Here we will build a simple registration page with captcha. You have to fill all fields on the registration form and finally captcha. The text you see on the captcha is case sensitive. If you need…

Continue