First generate wrapper on std sessions script and attach it to session.
You need to export the item , warehouse & prog.name$ from calling session before start.session and import that into the standard session in before.program section.
put check on before.program like
if prog.name = "cust session code " then
query. extension = " querry to fetch record for item & warehouse"
Hope this will help you.