---
title: "problem related to session"  
description: "problem related to session"  
author: "sourabh kumar"  
published: 2011-03-01  
updated: 2011-03-01  
canonical: https://www.mindstick.com/forum/181/problem-related-to-session  
category: "php"  
tags: ["php"]  
reading_time: 1 minute  

---

# problem related to session

how implement the [session](https://www.mindstick.com/articles/12042/session-in-c-sharp) in [php](https://www.mindstick.com/articles/12149/php-constant-and-php-variables)?\

## Replies

### Reply by Amit Singh

hi sourabh,\
we initialize the session in php as\

```
<?php
session_start();
$_session['name']="sourabh"; //store the value in session
echo "name=".$_session['name'];//retrieve the session value
?>
```

\
check this code\
\


---

Original Source: https://www.mindstick.com/forum/181/problem-related-to-session

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
