How to store object in PHP session?

PHP session only allows serialized data. So we need to serialize object before storing it into PHP session and unserialize the serialized session data when retrieve and using it.

There are serialize() and unserialize() functions available and inbuild in PHP.

The following code shows how to store object in php session.

$object = new custom_session_object();
$_SESSION['custom_session'] = serialize($object);

The following code shows how to retrieve object in php session.

$object = unserialize($_SESSION['custom_session']);

Top five: Highest Kolkata Knight Riders totals in the IPL

One of the most fierce competitors in the Indian Premier League, Kolkata Knight Riders have developed into a force to reckon with. With two titles in the competition so far (2012 and 2014), KKR have been one of the top performers in the league and one of the major reasons for their stupendous display has been their ability to put up some big scores.

Top trekking places in India

The following are the top most trekking places in India.

  • Kedarkantha Trek, Uttarakhand
  • Everest Base Camp Trek, Nepal
  • Hampta Pass Trek, Manali
  • Annapurna Base Camp Trek, Nepal
  • Valley of Flowers Trek, Uttarakhand
  • Goecha La Trek, Sikkim
  • Sandakphu Trek, West Bengal
  • Nag Tibba Trek, Uttarakhand
  • Kareri Lake Trek, Mcleodganj
  • Prashar Lake Trek, Himachal
  • Kanchenjunga Base Camp Trek, Sikkim
  • Triund and Laka Glacier Trek, Mcleodganj
  • Kuari Pass Trek, Uttarakhand
  • Kasol Kheerganga Trek, Kasol, Himachal Pradesh
  • Brahmatal Trek, Uttarakhand
  • Trek to Beas Kund, Manali
  • Patalsu Peak Trek, Manali
  • Har Ki Doon Trek, Uttarakhand
  • Chopta Tungnath Trek, Uttarakhand
  • Stok Kangri Trek, Ladakh
  • Indrahar Pass Trek, Mcleodganj
  • Bhrigu Lake Trek, Manali
  • Chadar Trek, Ladakh
  • Roopkund Trek, Uttarakhand
  • Hampta Pass Trek, Himachal Pradesh
  • Pangarchulla Peak Trek, Garhwal
  • Tarsar Marsar Trek, Jammu & Kashmir
  • Dayara Bugyal Trek, Uttarakhand
  • Pin Parvati Trek, Himachal Pradesh
  • Kanamo Peak Trek, Spiti Valley
  • Kalindi Khal Trek, Uttarakhand
  • The Markha Valley Trek, Ladakh
  • Dzongri Trek, Sikkim
  • Singalila Trek, Sikkim
  • Siang Valley Trek, Arunachal Pradesh
  • Triund Trek, Mcleodganj
  • Bara Bhangal Trek, Himachal Pradesh
  • Chanderkhani Pass Trek, Himachal Pradesh
  • Tadiandamol Trek, Coorg
  • Gokarna Beach Trek, Gokarna
  • Nishani Motte Hills Trek, Coorg
  • Kotagiri Trek, Ooty
  • Mullayanagiri Trek, Chikmagalur
  • Kopatty Trek, Coorg
  • Kumara Parvata Trek, Karnataka
  • Kodachadri Trek, Shimoga
  • Kolukkumalai Tea Estate Trek, Munnar
  • Kudremukh Trek, Karnataka
  • Chembra Peak Trek, Kerala
  • Lohagad Fort Trek, Lonavala
  • Rajmachi Trek, Maharashtra
  • Sandhan Valley Trek, Igatpuri
  • Harishchandragad Trek, Ahmednagar
  • Ratangad Trek, Maharashtra

What are all the most visited tourist places in India?

There are lot and lot of places to visit in India. You can see lot of traditions, different different languages, different religions, rivers, mountains, forest, desert, sea and forest. You never ever experience all type of travel experience in any other country. The following are the list of most visited places in India.

  • Taj Mahal
  • Ganges
  • Rashtrapati Bhavan
  • Ladakh
  • Harmandir Sahib
  • Ajanta Caves
  • Red Fort
  • India Gate
  • Lotus Temple
  • Qutub Minar
  • Gateway of India
  • Akshardham
  • Agra Fort
  • Falaknuma Palace
  • Mehrangarh Fort
  • Kumbh Mela
  • Bahubali
  • Sundarbans
  • Padmanabhaswamy Temple
  • Adam’s Bridge
  • Venkateswara Temple, Tirumala
  • Golkonda
  • Konark Sun Temple
  • Iron pillar of Delhi
  • Elephanta Caves
  • Humayun’s Tomb
  • Meenakshi Amman Temple
  • Jama Masjid, Delhi
  • Hawa Mahal
  • Amer Fort
  • Mysore Palace
  • INS Vikrant
  • Shaniwar Wada
  • Darjeeling Himalayan Railway
  • Sundarbans National Park
  • Mahabodhi Temple
  • Haji Ali Dargah
  • Eden Gardens
  • Kamakhya Temple
  • Howrah Bridge
  • Tomb of Akbar the Great
  • Dudhsagar Falls
  • Pamban Bridge
  • Nanda Devi
  • Rohtang Pass
  • Chennai Port
  • Jog Falls
  • Dal Lake
  • Triveni Sangam
  • Nilgiri mountains
  • Brihadeeswarar Temple, Thanjavur

What is good parenting?

Good Parenting

Good parenting is the duty of the parents to make their child/children as good adults for the society. Good adults having the following characteristics

  • Autonomy
  • Maturity
  • Self confidence
  • Self directed
  • Self esteem
  • Solid decision making skills
  • Being practical
  • Multi tasking
  • Experienced
  • Open minded
  • humble and modest
  • Bold and strong
  • Having good physic and healthy
  • Having helping tendency
  • Knowledgeable
  • Responsible
  • Committed
  • Lovable
  • Understandable

Make your child as a good adult with all the above characteristics is difficult. You should make your child with the above list of characteristics as much as possible. To make this happen you should redefine yourself with the above characteristics first.

You should be a good role model to your child because children will learn and copy more from you and your environment.

You should love them and always you should express your love to them. Love makes your child as good adult.

Set rules and standards for life and teach them with love and polite.

Always trust your children, and spend time to listen their words. It will increase trust and confidence on you and they will share their feelings and experience with you.

You should always match your mental age to your children, so that you can understand your children better and they think you are their good friend and well wisher.

Never ever harsh to them even they are wrong on few things. Correct them with care and love.

Speak a lot with your children about your life and experiences so they will get more experience from you.

Make them part of your day to day work so that they will be more independent and experienced.

Make them habituated to giving to others and helping others. Giving and helping always make them happy and increase their helping tendency.

Make them to participate in sports, games and competition activities, so that they experience the taste of win and loss.

Make them comfortable in dark place, so they will not fear about darkness.

Teach them about the opposite sex and the behavior and teach how to handle and respect them. This will make their life comfortable in the long run.

Teach them how to do forming and cultivation and how important the forming is for their food.

Teach them swimming so that they learn how to be in other medium.

Teach them about your family, friends and cultural values.

How to remove category from your post URLs in WordPress?

To remove the category from your WordPress post URLs we need to go through the following steps.

For example, You want to make the URLs from to

  • Go to Settings > Permalinks
  • Under Common Settings > select Custom Structure
  • Add /%category%/%postname%/ in the text box after your domain
  • Type period/dot in Category base text box Under Optional heading.

Note: This method does not required any custom plugins.

How to make strong backlinks to your website or a blog?

What are backlinks?

Backlinks are the links that are pointing to your website or a particular page or a subdirectory or a resource from the third party sites. it is also called inbound links or incoming links.

Why backlinks are important in SEO?

When there are more backlinks pointing to your site, there are more chances for new user click those links and coming to your site means more new traffic to your site. Also it will increase your site ranking on search engines and leads right traffic to your site

What is SEO / Search Engine Optimization?

SEO stands for Search Engine Optimization, which is the bunch of techniques and best practices to increase the right website traffic (right audience for your site) through search engine results. Actually SEO techniques consider all the criteria’s used in search engine robots to deliver the best result. Nowadays search engine robots are more brainy and using complex algorithm to find out the best results. Also they keep on fine tuning their search engine algorithm so the search engine optimization is the continual one.