# Customizing example 4 - User-Based Session Data on the Server

**URL:** <https://community.plotly.com/t/customizing-example-4-user-based-session-data-on-the-server/11847>\
**Category:** Dash Python\
**Created:** [July 17, 2018, 7:42pm UTC](https://community.plotly.com/t/customizing-example-4-user-based-session-data-on-the-server/11847 "2018-07-17T19:42:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![masum](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@masum](https://community.plotly.com/u/masum)\
**Post date:** [July 17, 2018, 7:42pm UTC](https://community.plotly.com/t/customizing-example-4-user-based-session-data-on-the-server/11847/1 "2018-07-17T19:42:25Z")

</div>

I am trying to customize example 4 of this link for my scenario:  
[https://dash.plot.ly/sharing-data-between-callbacks](https://dash.plot.ly/sharing-data-between-callbacks)

In my case, I need to save the uploaded excel file’s content into a dataframe and use it for other button events.

So the what I want:

1. When a user drag and drop or upload a file, I display it immediately. User can upload files any number of times and the content will be updated with new file’s content.
2. After displaying the content, I generate a dynamic button that will be clicked by the user to process the data.

Unfortunately, I have not stored any data anywhere yet, but displayed it only.

I tried a set of way to store the displayed data frame.

Way 1: approach is using hidden div. But, how can I store to hidden dive and display the data at the same time?

Way2: I tried the example 4 to store the data in a session. But, I was wondering, in that case, if the user upload a new file, how can I update the data in the session as it is cached and will not run again!
